evalml.utils.drop_rows_with_nans

evalml.utils.drop_rows_with_nans(pd_data_1, pd_data_2)[source]

Drop rows that have any NaNs in both pd_data_1 and pd_data_2.

Parameters
  • pd_data_1 (pd.DataFrame or pd.Series) – Data to subset.

  • pd_data_2 (pd.DataFrame or pd.Series) – Data to subset.

Returns

tuple of pd.DataFrame or pd.Series