1 Star 1 Fork 0

CShuaiChen/DataMining_homework_for_wine-reviews-oakland-crime-statistics-2011-to-2016

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
diff_plt.py 367 Bytes
一键复制 编辑 原始数据 按行查看 历史
PCisCool 提交于 2020-05-05 16:12 +08:00 . First commit
import matplotlib.pyplot as plt
import pandas as pd
def diff_hist(data1,data2):
fig, (ax0, ax1) = plt.subplots(nrows=2, sharex=True, figsize=(12, 8))
# 调整子图位置
plt.subplots_adjust(hspace=0)
data1.value_counts().head(10).plot.bar(ax=ax0)
ax0.grid()
data2.value_counts().head(10).plot.bar(ax=ax1)
ax1.grid()
plt.show()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/cshuaichen/DataMining_homework_for_wine-reviews-oakland-crime-statistics-2011-to-2016.git
git@gitee.com:cshuaichen/DataMining_homework_for_wine-reviews-oakland-crime-statistics-2011-to-2016.git
cshuaichen
DataMining_homework_for_wine-reviews-oakland-crime-statistics-2011-to-2016
DataMining_homework_for_wine-reviews-oakland-crime-statistics-2011-to-2016
master

搜索帮助