Skip to content

Instantly share code, notes, and snippets.

@kevin3
Created February 7, 2017 05:01
Show Gist options
  • Save kevin3/e47c4ceba903b95c73180fc823304def to your computer and use it in GitHub Desktop.
Save kevin3/e47c4ceba903b95c73180fc823304def to your computer and use it in GitHub Desktop.
import plotly
from plotly.tools import FigureFactory as FF
import pandas as pd
df = pd.read_csv('https://raw.githubusercontent.com/plotly/datasets/master/gantt_example.csv')
fig = FF.create_gantt(df, colors=['#333F44', '#93e4c1'], index_col='Complete', show_colorbar=True,
bar_width=0.2, showgrid_x=True, showgrid_y=True)
plotly.offline.plot(fig, filename='gantt-use-a-pandas-dataframe')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment