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

I ran it on google colab, and didnt show me this error

Hi @Gabriel_Chavez_Ramir

I would recommend to start with a minimal app and incrementally add the individual blocks of code into the app, then see if any of these blocks would cause an error.

I also see that there were several data transformation via pandas, I would also recommend to perform all data transformation in the Colab notebook and export a processed version for use in the app. An added benefit is that the app would run faster while we can also rule out Pandas as the cause of the error (though the error message suggests an error pertaining to the use of Pandas).

Also in requirements.txt file, I would recommend to replace plotly == 5.5.0 to plotly==5.5.0

1 Like

pandas Dataframe no longer has a append method, you can do:

row = [1,2,3,4,5]
new_index = len(df)
df.loc[new_index] = row

This will append the row at the end

1 Like

thanks for the response.

thanks, I aprecciate the response.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.