您好,我正在使用isin()和pandas查找数据集“条件”列中包含“10”或“小时”的汽车。 我正在使用
UScars.isin({'condition':[10, 'hours']})
但这给了我一个系统错误
SystemError: 'built-in method view of numpy.ndarray object at 0x000001F40BF30EE0' returned a result with an error set.
我使用condition列上的split()
将类型从str转换为list
我不知道我哪里出错了。任何帮助都将不胜感激
谢谢
您需要使用
str.contains
运算符来指定多个字符串匹配pd.isin从文件中:
相关问题 更多 >
编程相关推荐