Skip to content

Commit bb61abd

Browse files
committed
Cleanup
1 parent c2dfd9a commit bb61abd

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

xarray/tests/test_dataset.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
except ImportError:
2222
from numpy import RankWarning # type: ignore[no-redef,attr-defined,unused-ignore]
2323

24+
from pandas.errors import UndefinedVariableError
25+
2426
import xarray as xr
2527
from xarray import (
2628
AlignmentError,
@@ -71,13 +73,6 @@
7173
)
7274
from xarray.tests.indexes import MultiCoordIndex, ScalarIndex, XYIndex
7375

74-
try:
75-
from pandas.errors import UndefinedVariableError
76-
except ImportError:
77-
# TODO: remove once we stop supporting pandas<1.4.3
78-
from pandas.core.computation.ops import UndefinedVariableError
79-
80-
8176
try:
8277
import dask.array as da
8378
except ImportError:

0 commit comments

Comments
 (0)