I'm loading data from a csv using loadtxt where all values are floats with the exception of missing data which is coded as the character "?".
I'm trying to create a masked array such that I can use np.ma functions on the loaded data where the missing data will be ignored for the purpose of averages, etc. I've read the documentation for masked_array and this is probably incredibly trivial but I can't seem to figure out how to mask the array such that ? are ignored for the purpose of np.ma mathematical functions.