greenzorro / sankey

An easy way to create Sankey Diagram with Python and Excel.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sankey

Thanks to this project: https://www.python-graph-gallery.com/

It's easy to create all kinds of charts and diagrams with Python, including Sankey Diagram.

However, I made some improvements to it. With an extra Excel file, it's now possible to set diagram data in two well organized spread sheets, one for nodes and the other for links, rather than doing it in the tricky json way. Save each sheet as an .csv file, then the code reads data from them and inserts it to the json structure.

Just download everything in the assets folder and play with is locally.

See online demo here: https://colab.research.google.com/drive/15WgiAluGPgrnvp9I4QbBVMuy6bA7vbtR?usp=sharing

About

An easy way to create Sankey Diagram with Python and Excel.

License:GNU Affero General Public License v3.0


Languages

Language:Jupyter Notebook 100.0%