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, np.ndarray) – Data to transform

  • y (pd.Series, np.ndarray) – Target data

Returns

Transformed X (and y, if passed in) with rows that had a NaN value removed.

Return type

pd.DataFrame, pd.DataFrame