1
I’m trying to learn panda but I’m having a question here
I have the following data:
PSG CLASS
AAA 1
BBB 2
CCC 3
DDD 1
I wanted to create a new column, using Pandas, with the name Class and with the information "First", "Second" and "Third" according to the numbers 1, 2, 3 respectively.
Basically I wanted to create something like "If CLASS = 1 then the CLASS column gets FIRST"
But I couldn’t find a way, I would really appreciate your help!
Thank you,
Man, you helped me so much! Thank you so much!
– Iuri Moura