I have a df that looks like this (except more columns and rows):
p_id
1
2
3
How do I create logic that is scalable to map certain values to certain numbers in the p_id column?
example df should look like:
p_id:
a
b
c
in other words how do I make logic that says for every 1
in column p_id
, change to a