C:\New folder\lib\site-packages\numpy\core\_asarray.py in asarray(a, dtype, order) 83 84 """---> 85 return array(a, dtype, copy=False, order=order) 86 87 ValueError: could not convert string to float: '3 2'
如何在我数据集中找到这个错误值’3 2’的位置?
回答:
您可以使用等值比较
df.isin(["3 2"]).any()
如果您需要坐标,则
df[df.isin(["3 2"])].stack()