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 21f2e70 commit 1de77e5Copy full SHA for 1de77e5
pandas/core/strings/accessor.py
@@ -2536,14 +2536,14 @@ def get_dummies(
2536
if isinstance(input_dtype, ArrowDtype):
2537
import pyarrow as pa
2538
2539
- dtype = ArrowDtype(pa.bool_())
+ dtype = ArrowDtype(pa.bool_()) # type: ignore[assignment]
2540
elif (
2541
isinstance(input_dtype, StringDtype)
2542
and input_dtype.na_value is not np.nan
2543
):
2544
from pandas.core.dtypes.common import pandas_dtype
2545
2546
- dtype = pandas_dtype("boolean")
+ dtype = pandas_dtype("boolean") # type: ignore[assignment]
2547
else:
2548
dtype = np.bool_
2549
0 commit comments