Some columns in my DataFrame have instances of <NA>
which are of type pandas._libs.missing.NAType
.
I'd like to replace them with NaN
using np.nan
.
I have seen questions where the instances of <NA>
can be replaced when using pd.read_csv()
.
But since my Pandas DataFrame is created from a Spark DataFrame I do not use the pd.read_csv()
function.
Please Advise.