I have a dataframe with job descriptions in columns and values in rows.
Sample dataframe structure:
Data Scientist Senior Data Scientist Data Engineer
index
level_1 94.366197 87.755102 93.650794
level_2 93.239437 96.938776 95.23809
level_3 38.028169 56.122449 6.349209
dataframe info:
<class 'pandas.core.frame.DataFrame'>
Index: 6 entries, index to Research Analyst
Data columns (total 3 columns):
0 6 non-null object
1 6 non-null object
2 6 non-null object
dtypes: object(3)
I'm trying to replicate an excel output on python by having job descriptions in x-axis and create a bar chart where I can see for every job description what quantity is there for each level. Something like this:
What I have so far isn't working:
import matplotlib.pyplot as plt
%matplotlib inline
plt.style.use('ggplot')
degree_table.plot(x=['Data Scientist','Senior Data Scientist', etc.],
y=degree_table.index,
kind='bar')