Skip to content

Commit

Permalink
Merge pull request #786 from yonishelach/feature-selection-np-object
Browse files Browse the repository at this point in the history
[Feature-selection] Update numpy object use (deprecated)
  • Loading branch information
aviaIguazio authored Feb 4, 2024
2 parents a7a0517 + cf04a89 commit 438128d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 18 deletions.
2 changes: 1 addition & 1 deletion feature_selection/feature_selection.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def feature_selection(
y = df.pop(label_column)
X = df

if np.object in list(X.dtypes) and ignore_type_errors is False:
if np.object_ in list(X.dtypes) and ignore_type_errors is False:
raise ValueError(
f"{df.select_dtypes(include=['object']).columns.tolist()} are neither float or int."
)
Expand Down
Loading

0 comments on commit 438128d

Please sign in to comment.