I have used the pandas value_counts function to provide counts of unique values:
CountStatus = pd.value_counts(df['scstatus'].values, sort=True)
Output:
200 133809
304 7217
404 2176
302 740
500 159
403 4
301 1
dtype: int64
I now want to plot these values using matplotlib i.e plt.barh(CountStatus), however I keep getting the error: ValueError: incompatible sizes: argument 'width' must be length 7 or scalar.
I'm guessing this may have something to do with the left hand column being an index column. Is there a way around this to obtain a horizontal bar chart? Do I need to convert it or specify something else in the function?

