Skip to content

Commit cc741d9

Browse files
Fix pre-commit check on accessor.py
1 parent 75aa992 commit cc741d9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pandas/core/strings/accessor.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2442,6 +2442,7 @@ def get_dummies(
24422442
)
24432443
if isinstance(self._data.dtype, ArrowDtype):
24442444
import pyarrow as pa
2445+
24452446
dtype = ArrowDtype(pa.bool_())
24462447
string_series = input_series.apply(lambda x: str(x) if not isna(x) else x)
24472448
split_series = string_series.str.split(sep, expand=True).stack()
@@ -2489,10 +2490,10 @@ def get_dummies(
24892490
f"{prefix[i]}{prefix_sep}{col}"
24902491
for i, col in enumerate(result_df.columns)
24912492
]
2492-
2493+
24932494
if isinstance(self._data, ABCIndex):
24942495
return MultiIndex.from_frame(result_df)
2495-
2496+
24962497
result_df.attrs = self._data.attrs
24972498
if dtype is not None and not sparse:
24982499
return result_df.astype(dtype)

0 commit comments

Comments
 (0)