I have a pandas dataframe that looks like the following.
I would like to create a bar chart; however, I can't because LotType
isn't seen as a column variable name but rather a row header. How can I make LotType
just like the other columns? I'm sure this is an easy fix, but I haven't been able to find the answer to it.
bigdf.plot.bar(x='LotType', y='Ratio2015', figsize=(20, 3), color='maroon')
For reference, here is the error I get which I kind of explained above:
KeyError Traceback (most recent call last)
...
KeyError: 'LotType'