您好,我正在尝试查找此错误的根本原因:
ValueError: You are trying to merge on object and int64 columns.
Run Code Online (Sandbox Code Playgroud)
我知道我可以使用 Pandasconcat或merge函数来解决这个问题,但我试图了解错误的原因。问题是:为什么我会得到这个ValueError?
这是使用的两个数据帧上的head(5)和的输出info()。
print(the_big_df.head(5)) 输出:
account apt apt_p balance date day flag month reps reqid year
0 AA0420 0 0.0 -578.30 2019-03-01 1 1 3 10 82f2d761 2019
1 AA0420 0 0.1 -578.30 2019-03-02 2 1 3 10 82f2d761 2019
2 AA0420 0 0.1 -578.30 2019-03-03 3 1 3 …Run Code Online (Sandbox Code Playgroud)