Skip to content

Commit

Permalink
Remove double condition
Browse files Browse the repository at this point in the history
(Sorry I think I messed up when applying a suggestion for #623 )
  • Loading branch information
LeoGrin authored Jul 20, 2023
1 parent 363b34b commit a945a9d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion skrub/_table_vectorizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,6 @@ def _apply_cast(self, X: pd.DataFrame) -> pd.DataFrame:
# of missing values
object_cols = X.columns[X.dtypes == "object"]
for col in object_cols:
if pd.api.types.is_object_dtype(X[col]):
X[col] = np.where(X[col].isna(), X[col], X[col].astype(str))
for col, dtype in self.types_.items():
# if categorical, add the new categories to prevent
Expand Down

0 comments on commit a945a9d

Please sign in to comment.