Created
February 7, 2017 05:01
-
-
Save kevin3/e47c4ceba903b95c73180fc823304def to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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