I’m having issues saving my datapane report because I keep getting this error message: “AttributeError: module ‘pandas’ has no attribute ‘Int64Index’.” What does this error mean, and how can I fix it? Can anyone explain what this error signifies and suggest possible solutions? Also, any tips on using datapane libraries more effectively would be appreciated.
error line –> dp.save_report(v, path=f”{client}TelemetryReport{end_date_str}.html”, open=True)
While trying to save the datapane report file (HTML), I’m getting this error. I’m currently using the pandas version 2.0.3 . I didn’t use aany set index or any index driven opereations in the code on any dataframes.
error line –> dp.save_report(v, path=f”{client}TelemetryReport{end_date_str}.html”, open=True)
complete error –>
AttributeError Traceback (most recent call last)
in <cell line: 18>()
16 )
17
—> 18 dp.save_report(v, path=f”{client}TelemetryReport{end_date_str}.html”, open=True)
36 frames
/usr/local/lib/python3.10/dist-packages/datapane/common/df_processor.py in convert_axis(df)
24 if isinstance(df.index, pd.RangeIndex):
25 pass # allow RangeIndex – reset numbers?
—> 26 elif isinstance(df.index, pd.Int64Index):
27 df.reset_index(inplace=True, drop=True)
28 else:
AttributeError: module ‘pandas’ has no attribute ‘Int64Index’
Tried all the stack overflow suggested solutions but still the same error persisited. Then tried to upgrade the pandas version and decreased it too but of no use.
Pokala Kusal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.