Skip to content

Commit 2750652

Browse files
authored
Changed the strings to make code simpler (#57973)
1 parent 236209a commit 2750652

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

asv_bench/benchmarks/categoricals.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def setup(self):
8888
)
8989

9090
for col in ("int", "float", "timestamp"):
91-
self.df[col + "_as_str"] = self.df[col].astype(str)
91+
self.df[f"{col}_as_str"] = self.df[col].astype(str)
9292

9393
for col in self.df.columns:
9494
self.df[col] = self.df[col].astype("category")

0 commit comments

Comments
 (0)