I'm trying to learn panda but I have 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 of Class and with the information of "First," "Second" and "Third" according to numbers 1, 2, 3 respectively.
Basically I wanted to create something like "If CLASS = 1 then the CLASS column gets FIRST"
But I could not find how to do it, I would greatly appreciate your help!
Thanks,