Skip to content

Commit 4b01b63

Browse files
committed
Move up
1 parent e78cc76 commit 4b01b63

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tests/test_sql.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""SQL functionality tests for xarray-sql using pytest."""
22

33
import numpy as np
4+
import pandas as pd
45
import pytest
56
import xarray as xr
67

@@ -153,9 +154,6 @@ class TestNanAsNull:
153154

154155
@pytest.fixture
155156
def nan_ds(self):
156-
import numpy as np
157-
import pandas as pd
158-
159157
data = np.array([[[1.0, 2.0], [np.nan, 4.0]], [[5.0, np.nan], [7.0, 8.0]]])
160158
return xr.Dataset(
161159
{"temp": (["time", "x", "y"], data)},
@@ -167,8 +165,6 @@ def nan_ds(self):
167165
).chunk({"time": 1})
168166

169167
def test_nan_aggregates(self, nan_ds):
170-
import numpy as np
171-
172168
ctx = XarrayContext()
173169
ctx.from_dataset("data", nan_ds)
174170

0 commit comments

Comments
 (0)