evalml.preprocessing.drop_nan_target_rows¶
-
evalml.preprocessing.
drop_nan_target_rows
(X, y)[source]¶ Drops rows in X and y when row in the target y has a value of NaN.
- Parameters
X (pd.DataFrame) – Data to transform
y (pd.Series) – Target values
- Returns
Transformed X (and y, if passed in) with rows that had a NaN value removed.
- Return type
pd.DataFrame