I am looking for a fast way to insert a df_row (dataframe with only 1 row, and column could be less than 24) into a df_master (dataframe with few thousand rows and 24 columns)
for example:
df_row
A B C D E F G .... H
1 2 3 4 5 6 7 .... 8
df_master
A B C D ........................... Y
I am looking for a fast way to insert df_row into df_master, and set NaN for the columns that do no exist in df_row.
Previously, I was doing
df_master = df_master.append(df_row)
But this method gets slower as df_master gets better.
Is there a fast way of doing inplace append?