Skip to content

ff.create_gantt uses deprecated pandas' methods and return warnings #2066

Closed
@ricgu8086

Description

@ricgu8086

When executing the following code

import plotly.figure_factory as ff

fig2 = ff.create_gantt(df_total_gantt, colors=['#FF0000', '#0000FF'], index_col='Complete',
                      show_colorbar=True, bar_width=0.2, showgrid_x=True, showgrid_y=True)
fig2.show()

it is executed correctly and returns a nice plot, however, it also returns the following:

/usr/local/lib/python3.6/dist-packages/plotly/figure_factory/_gantt.py:49: FutureWarning:

.ix is deprecated. Please use
.loc for label based indexing or
.iloc for positional indexing

See the documentation here:
http://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#ix-indexer-is-deprecated

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions