Skip to content

Commit b7db53f

Browse files
benchmarks
1 parent b53cfe0 commit b7db53f

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

asv_bench/benchmarks/algos/isin.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ class IsIn:
2525
"category[object]",
2626
"category[int]",
2727
"str",
28-
"string",
29-
"arrow_string",
28+
"string[python]",
29+
"string[pyarrow]",
3030
]
3131
param_names = ["dtype"]
3232

@@ -62,9 +62,7 @@ def setup(self, dtype):
6262
self.values = np.random.choice(arr, sample_size)
6363
self.series = Series(arr).astype("category")
6464

65-
elif dtype in ["str", "string", "arrow_string"]:
66-
from pandas.core.arrays.string_arrow import ArrowStringDtype # noqa: F401
67-
65+
elif dtype in ["str", "string[python]", "string[pyarrow]"]:
6866
try:
6967
self.series = Series(tm.makeStringIndex(N), dtype=dtype)
7068
except ImportError:

asv_bench/benchmarks/strings.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,12 +226,10 @@ def time_contains(self, dtype, regex):
226226

227227
class Split:
228228

229-
params = (["str", "string", "arrow_string"], [True, False])
229+
params = (["str", "string[python]", "string[pyarrow]"], [True, False])
230230
param_names = ["dtype", "expand"]
231231

232232
def setup(self, dtype, expand):
233-
from pandas.core.arrays.string_arrow import ArrowStringDtype # noqa: F401
234-
235233
try:
236234
self.s = Series(tm.makeStringIndex(10 ** 5), dtype=dtype).str.join("--")
237235
except ImportError:

0 commit comments

Comments
 (0)