I have a data frame in which all the missing values are denoted with ?. I need the count of ? per each column.
A method that I tried was:
mydata.replace('?','')
mydata.isnull().sum()
that returns:
A1 0
A2 0
A3 0
A4 0
A5 0
A6 0
...
A16 0
dtype: int64
which should not be the case because there are ? in the CSV file that I got my data from.