Skip to content

Commit

Permalink
Filter NaN's when fitting JS
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-nml committed Nov 19, 2023
1 parent 0cfcf92 commit 369efbf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nannyml/drift/univariate/methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ def __init__(self, **kwargs) -> None:
self._reference_proba_in_bins: np.ndarray

def _fit(self, reference_data: pd.Series, timestamps: Optional[pd.Series] = None):
reference_data, = _clean_data(reference_data)
if _column_is_categorical(reference_data):
treat_as_type = 'cat'
else:
Expand Down

0 comments on commit 369efbf

Please sign in to comment.