Hi@MD,
You can use the append function to add new data in your DataFrame. You can go through the below example.
df1 = pd.DataFrame({"x":[25,15,12,19],"y":[47, 24, 17, 29]})
df2 = pd.DataFrame({"x":[25, 15, 12],"y":[47, 24, 17],"z":[38, 12, 45]})
df1.append(df2, ignore_index = True)
x |
y |
z |
0 |
25 |
47 |
NaN |
1 |
15 |
24 |
NaN |
2 |
12 |
17 |
NaN |
3 |
19 |
29 |
NaN |
4 |
25 |
47 |
38.0 |
5 |
15 |
24 |
12.0 |
6 |
12 |
17 |
45.0 |
I hope this will help you.