0

I have two dataframes (df1 and df2) with the same columns. I am trying the append the second dataframe to the first one using the following command:

df1.append(df2)

This was working earlier on without any problems, but running the same Jupyter Notebook cell today seems to throw the following error:

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

Does anyone know why this is happenning? Has there been any changes in the pandas package or something to do with any changes in the JupyterLab environment?

Also, the pandas documentation page for the append() function seems to through a 404 Not Found error (https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.append.html)

Ishwar Venugopal
  • 872
  • 6
  • 17
  • 1
    `append` is deprecated, use `concat`, or create a new DataFrame depending on your exact use case – mozway Apr 05 '23 at 09:29

0 Answers0