I currently have two dataframes which I wish to join:
df1 = {'col1': [1, 2, 3, 4, 5]}
col1
0 1
1 2
2 3
3 4
4 5
df2 = {'col2': ['nan', 'nan', 3, 4]}
col2
0 nan
1 nan
2 3
3 4
Currently I would like to join the two dataframes. However, I would like for the second dataframe (df2) to be added from the bottom as shown below:
col1 col2
0 1 nan
1 2 nan
2 3 nan
3 4 3
4 5 4
How might I do this? I currently have tried using pandas.join()
but have had no luck with this.
Essentially I want to append from the bottom, as shown by the output, there is another null value that is created in the first row of the output.