This is my dataframe df :
df = pd.DataFrame({'a': [0.671399,0.446172,0.614758],
'b' : [ 0.101208 ,-0.243316 ,0.075793],
'c':[-0.181532 ,0.051767, -0.451460]})
a b c
0 0.671399 0.101208 -0.181532
1 0.446172 -0.243316 0.051767
2 0.614758 0.075793 -0.451460
I wanted to add 1 more column with more index so I tried this:
df['e'] = pd.Series(data = [-0.335485, -1.166658, -0.385571,-1.166658 ],index=[0,1,2,3])
But the result is not adding index = 3 row.
a b c e
0 0.671399 0.101208 -0.181532 -0.335485
1 0.446172 -0.243316 0.051767 -1.166658
2 0.614758 0.075793 -0.451460 -0.385571