I have a dataframe with mostly dates as columns.
Ex:
Names 01/04/2020 02/04/2020...
0 Name1 1.0 NaN
1 Name2 2.0 8.0
...
I want to substitute all these floats for the character 'P'
Ex:
Names 01/04/2020 02/04/2020...
0 Name1 P NaN
1 Name2 P P
...
I've tried using iloc, but didn't work:
df.iloc[:,1:][df.iloc[:, 1:] >=1] = 'P'
Any ideas?