You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For StandardScaler, looks like it supports NaN values, see class Normalizer:
null_index=np.isnan(X)
However, during preprocess, _fill_na() will fill na_value for non-string.
So
for dtype=str, the X values will be string
for dtype=float/int, the X values will be na_value
In the first case, np.isnan will throw an error because X elements are of string type.
In the second case, there is no point to normalize numbers if we have a na_value there.
Is this behavior expected or not?
The text was updated successfully, but these errors were encountered:
For
StandardScaler
, looks like it supports NaN values, seeclass Normalizer
:However, during preprocess,
_fill_na()
will fillna_value
for non-string.So
dtype=str
, the X values will be stringdtype=float/int
, the X values will bena_value
In the first case,
np.isnan
will throw an error because X elements are of string type.In the second case, there is no point to normalize numbers if we have a
na_value
there.Is this behavior expected or not?
The text was updated successfully, but these errors were encountered: