How to convert the month number from a dataframe to month name?
Had try:
df['month'] = pd.to_datetime(df['Settlement_Date']).dt.month
x= df['month']
datetime_object = datetime.strptime(x, "%m")
month_name = datetime.strftime("%b")
print("Short name: ",month_name)
However, getting error message:
TypeError: strptime() argument 1 must be str, not Series