我有“ train_df”数据框,其中:
print(train_df.shape)
返回(997,600)。
现在我想将一列连接到此数据框,该列:
print(len(local_df["target"]))
返回997。
因此看来尺寸一切正常。
但问题是:
final_df = pd.concat([train_df, local_df["target"]], axis=1) print(final_df.shape)
返回(1000,601)。而应该是(997,601)。
你知道是什么问题吗?
 慕哥9229398
慕哥9229398 
					侃侃尔雅
 
					森林海
 随时随地看视频慕课网APP
随时随地看视频慕课网APP
相关分类