I used StandardScaler() to standardize data so for, but this doesn't work with NaNs. None of the other methods I know of (MinMaxScaler, RobustScaler, MaxAbsScaler) work with NaNs either. Are there other methods?
My search results came up with a solution
But this works only with panda dataframes (they have column names). Is there a way to implement column headers in the matrix?