File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 11
11
import pandas as pd
12
12
import pytest
13
13
from packaging .version import Version
14
- from pandas .core .computation .ops import UndefinedVariableError
15
14
16
15
import xarray as xr
17
16
from xarray import (
52
51
source_ndarray ,
53
52
)
54
53
54
+ try :
55
+ from pandas .errors import UndefinedVariableError
56
+ except ImportError :
57
+ # TODO: remove once we stop supporting pandas<1.4.3
58
+ from pandas .core .computation .ops import UndefinedVariableError
59
+
60
+
55
61
pytestmark = [
56
62
pytest .mark .filterwarnings ("error:Mean of empty slice" ),
57
63
pytest .mark .filterwarnings ("error:All-NaN (slice|axis) encountered" ),
Original file line number Diff line number Diff line change 11
11
import numpy as np
12
12
import pandas as pd
13
13
import pytest
14
- from pandas .core .computation .ops import UndefinedVariableError
15
14
from pandas .core .indexes .datetimes import DatetimeIndex
16
15
17
16
import xarray as xr
57
56
source_ndarray ,
58
57
)
59
58
59
+ try :
60
+ from pandas .errors import UndefinedVariableError
61
+ except ImportError :
62
+ # TODO: remove once we stop supporting pandas<1.4.3
63
+ from pandas .core .computation .ops import UndefinedVariableError
64
+
65
+
60
66
try :
61
67
import dask .array as da
62
68
except ImportError :
You can’t perform that action at this time.
0 commit comments