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'
How can I find where in my dataset this error '3 2' value is present?
You can use equality comparison
df.isin(["3 2"]).any()
If you need the co-ordinates then
df[df.isin(["3 2"])].stack()
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.