Hi folks,
I have a dataframe (df) that has a field called monthName. This can be “January”, “February”…“December”.
I want to group some data and show the month names in Chronological order along with the mean value of the field fName. At the moment it comes out in alphabetical order.
April,
August
…
September
groupedByMonthName = df.groupby('monthName')
print(groupedByMonthName["fName"].mean())
Can this be done?
Also do the same on a bar plot…
groupedByMonth["fName"].mean().plot.bar(y = 'fName')
Thanks,
J