Replace NA-like strings with NaN.
x (pd.DataFrame, pd.Series, or list) – Input data.
na_strings (list of str, optional) – Strings to treat as NA. Defaults to NA_STRINGS.
NA_STRINGS
Same type as input with NA strings replaced by NaN.
pd.DataFrame, pd.Series, or list