Skip to content

Commit 11e168f

Browse files
committed
Move imports locally to resolve circular import conflict
1 parent 7ccaf47 commit 11e168f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/core/strings.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
from pandas.core.algorithms import take_1d
2121
from pandas.core.base import NoNewAttributesMixin
2222
import pandas.core.common as com
23-
from pandas.core.reshape.reshape import get_dummies
2423

2524
_cpython_optimized_encoders = (
2625
"utf-8", "utf8", "latin-1", "latin1", "iso-8859-1", "mbcs", "ascii"
@@ -1000,6 +999,9 @@ def str_get_dummies(arr, sep='|'):
1000999
1 0 0 0
10011000
2 1 0 1
10021001
"""
1002+
from pandas.core.reshape.reshape import get_dummies
1003+
from pandas import Series
1004+
10031005
arr = arr.fillna('')
10041006

10051007
arr_split = arr.str.split(sep)

0 commit comments

Comments
 (0)