Py - 根据另一个数据帧的内容对数据帧进行子集

时间:2018-03-12 13:04:00

标签: python-3.x pandas subset

晚上好,

为了实现标题所暗示的内容,我尝试了以下代码:

data = df[ (df.tipo_mov == 2) & (df.day == X_test.day) & (df.month == X_test.month) ]

但它报告了以下错误:"只能比较带有相同标签的Series对象"。

我该如何解决?

0 个答案:

没有答案
相关问题