I'm trying to replace missing values from a csv file, which in my case are identified with a specific string. I'm doing this
data = np.genfromtxt(filename, delimiter=',', autostrip=True, dtype=float, missing_values="ab", filling_values=0.0)
string "ab"
is just an example, and it could be any string which I use to identify missing values. However, when I dump the csv to file, I see nan and not zero.