Example
df:
col_a col_b
a 2 3
b 4 4
c 3 2
array: np.array([c,d,e])
Expected
The array unions the dataframe index, it returns the dataframe as follow:
col_a col_b
a 2 3
b 4 4
c 3 2
d NaN NaN
e NaN NaN
Try
I use pd.concat([pd.Series(array),df],axis=1),but failed. How can I get it?