Skip to content

Commit

Permalink
.loc fix
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishekkrthakur committed Apr 23, 2024
1 parent e8ab0e6 commit 2961150
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/autotrain/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@


logger = Logger().get_logger()
__version__ = "0.7.57.dev0"
__version__ = "0.7.58.dev0"
4 changes: 2 additions & 2 deletions src/autotrain/preprocessor/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ def prepare(self):
train_df, valid_df = self.split()
train_df, valid_df = self.prepare_columns(train_df, valid_df)

train_df[:, "autotrain_label"] = train_df["autotrain_label"].astype(str)
valid_df[:, "autotrain_label"] = valid_df["autotrain_label"].astype(str)
train_df.loc[:, "autotrain_label"] = train_df["autotrain_label"].astype(str)
valid_df.loc[:, "autotrain_label"] = valid_df["autotrain_label"].astype(str)

label_names = sorted(set(train_df["autotrain_label"].unique().tolist()))

Expand Down

0 comments on commit 2961150

Please sign in to comment.