how to append to a dataframe based on a condition in python code example
Example 1: how to append a dataframe to another dataframe in pandas
# all_res is list of DataFrames : [ dataframe, dataframe, ... ]
df_res = pd.concat(all_res)
Example 2: dataframe not appending
#DF.append is not inplace, need to assign back
df8 = df8.append([s] * 2, ignore_index=True)
df8
A B C D
0 value aa value bb value cc value dd
1 value aa value bb value cc value dd