pySankey:使用matplotlib创建sankey图

时间:2021-05-22 03:15:52
【文件属性】:
文件名称:pySankey:使用matplotlib创建sankey图
文件大小:418KB
文件格式:ZIP
更新时间:2021-05-22 03:15:52
JupyterNotebook pySankey 使用matplotlib创建仅从左向右流动的简单。 要求 需要python-tk(对于python 2.7)或python3-tk(对于python 3.x),您可以使用以下命令安装其他要求: pip install -r requirements.txt 例子 随着fruits.txt: 真的 预料到的 0 蓝莓 橙子 1个 酸橙 橙子 2个 蓝莓 酸橙 3 苹果 橙子 ... ... ... 996 酸橙 橙子 997 蓝莓 橙子 998 橙子 香蕉 999 苹果 酸橙 1000行×2列 您可以使用以下代码生成sankey的图: import pandas as pd from pysankey import sankey pd . options . display . max_rows = 8 df = pd . read_cs
【文件预览】:
pySankey-master
----.ipynb_checkpoints()
--------plotFruit-checkpoint.ipynb(111KB)
----pysankey()
--------customers-goods.csv(195B)
--------requirements.txt(50B)
--------__init__.py(205B)
--------fruits.txt(14KB)
--------sankey.py(9KB)
--------customers-goods.png(98KB)
--------plotFruit.ipynb(111KB)
--------fruits.png(141KB)
--------tests()
----.pylintrc(190B)
----requirements.txt(49B)
----.travis.yml(317B)
----LICENSE(34KB)
----requirements_dev.txt(67B)
----setup.py(829B)
----README.md(3KB)
----.gitignore(1KB)

网友评论