Created
May 8, 2019 08:08
-
-
Save ken333135/df709ed85d5d877d06764bcc14aa3ecf to your computer and use it in GitHub Desktop.
Script to create a Sankey Diagram using genSankey
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import plotly | |
import plotly.plotly as py | |
fig = genSankey(df,cat_cols=['lvl1','lvl2','lvl3','lvl4'],value_cols='count',title='Word Etymology') | |
plotly.offline.plot(fig, validate=False) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment