您可以结合使用calendar.month_abbr
和df[col].apply()
import calendar
df['Month'] = df['Month'].apply(lambda x: calendar.month_abbr[x])
python / pandas:将month int转换为月份名称
您可以结合使用calendar.month_abbr
和df[col].apply()
import calendar
df['Month'] = df['Month'].apply(lambda x: calendar.month_abbr[x])