AttributeError: 'DataFrame' object has no attribute 'ix'

Dear All,
I am working using Google Collab Jupyter Notebook
I am trying to plot the gantt_chart.

import plotly.figure_factory as ff
//Code to buid dataframe df1
fig = ff.create_gantt(df1)

I am getting AttributeError: ‘DataFrame’ object has no attribute ‘ix’

One stackoverflow post says that this is error crops up due to older version of Pandas library.
The Pandas version used by Google Collab is 1.1.5.
Any way to fix this issue in google collab?

Help to resolve this error is appreciated.


Hi @danny and welcome to the plotly community!

.ix is deprecated in pandas, you should use df.loc instead to filter the dataframe.