Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ricgu8086 opened this issue Jan 14, 2020 · 2 comments
Closed

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

ricgu8086 opened this issue Jan 14, 2020 · 2 comments

Comments

@ricgu8086
Copy link

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

@emmanuelle
Copy link
Contributor

Thank you @ricgu8086 ! We'll fix this, unless of course you would like to submit a pull request here :-).

@nicolaskruchten
Copy link
Contributor

This was already patched actually and will come out in 4.5 :) See #2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants