Skip to content

Commit a207fb1

Browse files
authored
no need to do a circular import (#35128)
1 parent 74e0cde commit a207fb1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pandas/core/generic.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -5366,9 +5366,8 @@ def dtypes(self):
53665366
string object
53675367
dtype: object
53685368
"""
5369-
from pandas import Series # noqa: F811
5370-
5371-
return Series(self._mgr.get_dtypes(), index=self._info_axis, dtype=np.object_)
5369+
data = self._mgr.get_dtypes()
5370+
return self._constructor_sliced(data, index=self._info_axis, dtype=np.object_)
53725371

53735372
def _to_dict_of_blocks(self, copy: bool_t = True):
53745373
"""

0 commit comments

Comments
 (0)