【发布时间】:2020-03-18 10:16:52
【问题描述】:
我无法放置整个数据框,因为它看起来很笨拙,所以我添加了 数据类型。
DF1 Columns:
Dependents object
ApplicantIncome int64
CoapplicantIncome float64
LoanAmount float64
Loan_Amount_Term float64
Credit_History float64
DF2 Columns:
Gender int64
Married int64
Education int64
Self_Employed int64
Credit_History int64
Property_Area int64
我的意图是将两个数据框并排放置并使其成为 单个数据框形状(480,12),但我得到更多行 整列重复数据。
【问题讨论】:
-
如果您能准备一个 minimal reproducible example 会有所帮助。请向我们展示代码,您不需要使用原始数据框,您可以随时制作示例数据框来演示相同的效果。
-
你是怎么加入他们的?
-
两个数据框中的 Credit_History 列是否不同?