I am using pandas to read a csv file. Data is numbers, but stored in a CSV file as text. Some of the values ββare non-numeric when they are bad or missing. How to filter these values ββand convert the remaining data to integers.
I assume there is a better / faster way than isdigit() through all the values ββand using isdigit() to check that they are numeric.
Does pandas or numpy have a way to recognize bad values ββin the reader? If not, what is the easiest way to do this? Do I have to specify dtypes types to make this work?
Dave31415
source share