Skip to content

Instantly share code, notes, and snippets.

@ken333135
Created May 8, 2019 08:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ken333135/df709ed85d5d877d06764bcc14aa3ecf to your computer and use it in GitHub Desktop.
Save ken333135/df709ed85d5d877d06764bcc14aa3ecf to your computer and use it in GitHub Desktop.
Script to create a Sankey Diagram using genSankey
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