replace np.object with object

bugfix/fix-ci-errors
Taiga Noumi 2023-07-11 00:09:04 +09:00
parent 6d5c1b82c6
commit 87395eaa34
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ class BertSentenceVectorizer(BaseFeaturizer):
X = convert_input(X)
tqdm.pandas()
columns = self.text_columns or [c for c in X.columns if X[c].dtype == np.object]
columns = self.text_columns or [c for c in X.columns if X[c].dtype == object]
non_text_columns = [c for c in X.columns if c not in columns]
column_names = []