I have the dictionary
dicts: {0: '1969', 1: '1971', 2: '76'}
I also have the following df:
Start date End Date
0 w a
1 A 2
2 B NaN
Now I want to put the dictionary in place of one DataFrame column
df = df.replace({'Start date': dicts})
Result: Nothing changed :(
Expected:
Start date End Date
0 1969 a
1 1971 2
2 76 NaN