I have this code which replaces all spaces/gaps within my data structure with NaN:
replace_spaces = data.replace(r'^\s*$', np.nan, regex=True)
How would I update that to make it so converts all: space, empty, N/A, na and NA type values into NaN for consistency ?
And how would I return the location of these empty strings? (I've been googling for hours couldn't find solution)