How the d.keys()
in d
can match with the df['month']
to display the d.values
?
If let say the dataframe 's data 01/01/2022, 01/02/2022, 01/03/2022, ...etc
How the 1
in the df['month']
match with the d.keys()
to display Jan
?
df['month'] = pd.to_datetime(df['Settlement_Date']).dt.month
d = {1:'Jan', 2:'Feb', 3:'Mar', 4:'Apr', 5:'May', 6:'Jun',...}