diff --git a/pandas/core/accessor.py b/pandas/core/accessor.py index ef42879acaf5a..cc93c54a1ee15 100644 --- a/pandas/core/accessor.py +++ b/pandas/core/accessor.py @@ -7,6 +7,7 @@ from __future__ import annotations +import functools as ft from typing import ( TYPE_CHECKING, final, @@ -116,8 +117,6 @@ def _setter(self, new_values): doc=getattr(delegate, accessor_mapping(name)).__doc__, ) - import functools as ft - def _create_delegator_method(name: str): method = getattr(delegate, accessor_mapping(name))