【发布时间】:2019-08-22 16:07:34
【问题描述】:
我正在尝试另一种使用 matplotlib/seaborn 可视化熊猫系列的方法。但我做不到。有什么办法吗?
我可以使用 pandas 的 df.plot() 方法对其进行可视化。
df2.groupby('Company').Company.count()
数据如下所示:
100 a
101 b
102 c
103 d
104 a
105 c
106 d
107 b
108 a
109 c
【问题讨论】:
-
您可以添加一些数据以及您要绘制的内容吗?通过 import seaborn as sns 然后使用 sns.set() 可以在使用 pandas plot 时获得 Seaborn 风格。
-
我已经添加了示例数据。
标签: python python-3.x pandas matplotlib seaborn