Skip to content

Commit

Permalink
fix na in the dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaume-vignal committed Oct 10, 2024
1 parent 368c154 commit 876227d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions eurybia/core/smartdrift.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ def compile(
dtypes = df_concat[varz].dtypes.map(str)
cat_features = list(dtypes[dtypes.isin(["object"])].index)
df_concat[cat_features] = df_concat[cat_features].fillna("NA")
df_concat = df_concat.fillna(0)
self._df_concat = df_concat

train, test = train_test_split(df_concat[varz + [self._datadrift_target]], test_size=0.25, random_state=42)
Expand Down

0 comments on commit 876227d

Please sign in to comment.