Skip to content

Commit fbdddbb

Browse files
revert previous string_dtype change
1 parent 8e18ee0 commit fbdddbb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pandas/core/strings/accessor.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2482,11 +2482,9 @@ def get_dummies(
24822482
1 False False False
24832483
2 True False True
24842484
"""
2485-
from pandas.core.dtypes.common import is_string_dtype
2486-
24872485
from pandas.core.frame import DataFrame
24882486

2489-
if is_string_dtype(dtype):
2487+
if dtype in (str, "str[pyarrow]"):
24902488
raise ValueError("string dtype not supported, please use a numeric dtype")
24912489
# we need to cast to Series of strings as only that has all
24922490
# methods available for making the dummies...

0 commit comments

Comments
 (0)