Skip to content

Commit 6d7263b

Browse files
committed
fixup import in __init__
1 parent e7c5d25 commit 6d7263b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,9 @@ def __dir__() -> list[str]:
190190

191191
def __getattr__(name):
192192
import warnings
193+
from pandas.util._exceptions import find_stack_level
193194

194195
if name in __deprecated_num_index_names:
195-
from pandas.util._exceptions import find_stack_level
196-
197196
warnings.warn(
198197
f"pandas.{name} is deprecated "
199198
"and will be removed from pandas in a future version. "

0 commit comments

Comments
 (0)