Answers for "pandas: groupby plot bar"

0

bar plot group by pandas

df.groupby('year').case_status.value_counts().unstack().plot.barh()
Posted by: Guest on April-24-2021
0

plot.barh() group by

df.groupby('year').case_status.value_counts().unstack(0).plot.barh()
Posted by: Guest on May-04-2021

Python Answers by Framework

Browse Popular Code Answers by Language