I was trying to plot a graph from a dataframe that was created using pivoting a raw csv file. I tried to put the index "Month" as x-axis at the time of plotting using xticks
(ax = df.plot(xticks=df.index)
ylab = ax.set_ylabel('Device sold')
But everytime one error comes after executing the code:
f'units: {x!r}') from e matplotlib.units.ConversionError: Failed to convert value(s) to axis units: Index(['April', 'August', 'February', 'January', 'July', 'June', 'March', 'May'], dtype='object', name='Month')
The data where i tried to plot the above code is as below :