如何从pandas数据序列中提取唯一排列?

2024-10-01 22:39:18 发布

您现在位置:Python中文网/ 问答频道 /正文

使用Pandas DataSeries在Jupyter中工作时,我有一个数据集,其行如下:

color: white
engineType: diesel
make: Ford
manufacturingYear: 2004
accidentCount: 123

我需要做的是按制造年份(x轴)绘制所有颜色/发动机类型/品牌排列的事故计数(y轴)图表。有什么办法吗?在

为了加快速度,我做了以下初始设置:

^{pr2}$

Tags: 数据pandasmake颜色绘制jupytercolorwhite

热门问题