We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e18ee0 commit fbdddbbCopy full SHA for fbdddbb
pandas/core/strings/accessor.py
@@ -2482,11 +2482,9 @@ def get_dummies(
2482
1 False False False
2483
2 True False True
2484
"""
2485
- from pandas.core.dtypes.common import is_string_dtype
2486
-
2487
from pandas.core.frame import DataFrame
2488
2489
- if is_string_dtype(dtype):
+ if dtype in (str, "str[pyarrow]"):
2490
raise ValueError("string dtype not supported, please use a numeric dtype")
2491
# we need to cast to Series of strings as only that has all
2492
# methods available for making the dummies...
0 commit comments