Skip to content

Commit

Permalink
type lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dcolinmorgan committed Feb 19, 2024
1 parent e63e283 commit e11b421
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cu_cat/_table_vectorizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ def _auto_cast(self, X: pd.DataFrame) -> pd.DataFrame:
num_col = X.select_dtypes(include=['int64','float64']).columns
for i in num_col:
X[i] = X[i].fillna(0)
X[i] = pd.to_numeric(X[i],downcast='float',errors='ignore')
X[i] = pd.to_numeric(X[i],downcast='float',errors='ignore') # type: ignore

for col in X.columns:
# Convert pandas' NaN value (pd.NA) to numpy NaN value (np.nan)
Expand Down

0 comments on commit e11b421

Please sign in to comment.