[英]how to plot in pandas categorical data
I have this kind of dataframe:我有这种dataframe:
animal age where
0 dog 1 indoor
1 cat 4 indoor
2 horse 3 outdoor
I would like to present a bar plot in which:我想介绍一个酒吧 plot 其中:
y axis is age, x axis is animal, and the animals are grouped in adjacent bars with different colors. y 轴是年龄,x 轴是动物,动物被分组在不同的 colors 的相邻条中。
Thanks谢谢
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.