I was using frame.append method to add rows to a dataframe, yet it is deprecated and going to be removed from pandas.
FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
So, in this article, I will tell you how to convert DataFrame.append() to pandas.concat(). It’s easy.
This is my original code with append method. With this code, I was appending
b = b.append(a)
So, this is how we achieve the same using
b = pd.concat([b, a], axis=0)
This is quite easy.
axis=0 means that the dataframes are going to be concatenated vertically.