In code I have already created a month column and groupby it according to month but the months names are not sorted. How can I do it
enter code here
plt.figure(figsize=(8,4))
bymonth = df1.groupby('Created_Month').count().reset_index()
a=bymonth['Created_Month']
b=bymonth['Customer Complaint']
plt.plot(a,b,color='g',linewidth=3,label='max complaints in Jun')
plt.xlabel('Created Month')
plt.xlabel('customer complain')
plt.title("Number of complaints monthly")
plt.text(6.25, 1000, '<--max complaint in Jun', fontsize = 12)
plt.show()
convert into list and this may help,