0
我有两个dataframes concatinating 2个DataFrames没有为NaN,在python
df_temp,
Age Name city
0 1 Pechi checnnai
1 2 Sri pune
df_po
po
0 er
1 ty
我试图pd.concat([df_temp,df_po])
df_temp=pd.concat([df_temp,df_po],ignore_index=True)
我越来越
Age Name city po
0 1.0 Pechi checnnai NaN
1 2.0 Sri pune NaN
2 NaN NaN NaN er
3 NaN NaN NaN ty
但我期望的输出是,
Age Name city po
0 1.0 Pechi checnnai er
1 2.0 Sri pune ty
检查环节,已经有细节,并回答有。 https://pandas.pydata.org/pandas-docs/stable/generated/pandas.concat.html – Wen