小编Ben*_*enz的帖子

比较行时如何绘制条形图?

我在此数据集上绘制条形图时遇到麻烦。

+------+------------+--------+
| Year | Discipline | Takers |
+------+------------+--------+
| 2010 | BSCS       |   213  |
| 2010 | BSIS       |   612  |
| 2010 | BSIT       |   796  |
| 2011 | BSCS       |   567  |
| 2011 | BSIS       |   768  |
| 2011 | BSIT       |   504  |
| 2012 | BSCS       |   549  |
| 2012 | BSIS       |   595  |
| 2012 | BSIT       |   586  |
+------+------------+--------+
Run Code Online (Sandbox Code Playgroud)

我正在尝试绘制一个条形图,该条形图用3条形表示每年的接受者数量。这是我做的算法。

import matplotlib.pyplot as plt
import …
Run Code Online (Sandbox Code Playgroud)

python matplotlib python-3.x pandas jupyter-notebook

3
推荐指数
1
解决办法
98
查看次数