Skip to content

Commit 6a54ac4

Browse files
committed
used 1.3.x fixtures in test
1 parent bdf34c6 commit 6a54ac4

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

pandas/tests/groupby/test_quantile.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,11 @@ def test_groupby_quantile_skips_invalid_dtype(q):
248248
tm.assert_frame_equal(result, expected)
249249

250250

251-
def test_groupby_quantile_NA_float(any_float_dtype):
251+
def test_groupby_quantile_NA_float(any_float_allowed_nullable_dtype):
252252
# GH#42849
253-
df = DataFrame({"x": [1, 1], "y": [0.2, np.nan]}, dtype=any_float_dtype)
253+
df = DataFrame(
254+
{"x": [1, 1], "y": [0.2, np.nan]}, dtype=any_float_allowed_nullable_dtype
255+
)
254256
result = df.groupby("x")["y"].quantile(0.5)
255257
expected = pd.Series([0.2], dtype=float, index=[1.0], name="y")
256258
expected.index.name = "x"
@@ -265,9 +267,9 @@ def test_groupby_quantile_NA_float(any_float_dtype):
265267
tm.assert_series_equal(result, expected)
266268

267269

268-
def test_groupby_quantile_NA_int(any_int_ea_dtype):
270+
def test_groupby_quantile_NA_int(any_nullable_int_dtype):
269271
# GH#42849
270-
df = DataFrame({"x": [1, 1], "y": [2, 5]}, dtype=any_int_ea_dtype)
272+
df = DataFrame({"x": [1, 1], "y": [2, 5]}, dtype=any_nullable_int_dtype)
271273
result = df.groupby("x")["y"].quantile(0.5)
272274
expected = pd.Series([3.5], dtype=float, index=Index([1], name="x"), name="y")
273275
tm.assert_series_equal(expected, result)

0 commit comments

Comments
 (0)