I have a dataframe that I concatenate with an array.
s = pd.concat([dataframe, pd.Series(array)], ignore_index=False, axis=1)
My problem is that the length of the array is shorter which result in leading nan. I want to have trailing nan instead as the value correspond to the latest value at the bottom the frame.
Example:
col1 col2 col3
0 23 56 68
1 12 09 21
2 12 93 nan
3 12 64 nan
Should be:
col1 col2 col3
0 23 56 nan
1 12 09 nan
2 12 93 68
3 12 64 21
Any help would be appreciated.