Fix AttributeError: 'DataFrame' object has no attribute 'append'
Pandas 2.0 removed DataFrame.append(). Replace it with pd.concat — and if you were appending in a loop, collect rows in a list and build the DataFrame once.
2 articles
Pandas 2.0 removed DataFrame.append(). Replace it with pd.concat — and if you were appending in a loop, collect rows in a list and build the DataFrame once.
This pandas error means you called a datetime accessor like .month on an integer index. Convert the index to datetimes first — and know that Int64Index itself was removed in pandas 2.0.