python .append add new row code example
Example 1: append row to array python
import numpy as np
newrow = [1,2,3]
A = np.vstack([A, newrow])
Example 2: append one row to pandas dataframe
df = df.append({'index1': value1, 'index2':value2,...}, ignore_index=True)