From bbb2e7f563376600f13f3e18a9b629a0500278d8 Mon Sep 17 00:00:00 2001 From: Dawid Makar Date: Wed, 27 Sep 2023 00:29:31 +0200 Subject: [PATCH] Automatic refactoring. Refactoring step id: UUID('0195da70-b4ab-43e3-a4fc-045d7f3e8717') --- pandas/tests/copy_view/test_interp_fillna.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pandas/tests/copy_view/test_interp_fillna.py b/pandas/tests/copy_view/test_interp_fillna.py index 5d4fd75df830c..624e841baae42 100644 --- a/pandas/tests/copy_view/test_interp_fillna.py +++ b/pandas/tests/copy_view/test_interp_fillna.py @@ -248,10 +248,7 @@ def test_fillna_inplace_reference(using_copy_on_write): def test_fillna_interval_inplace_reference(using_copy_on_write): - # Set dtype explicitly to avoid implicit cast when setting nan - ser = Series( - interval_range(start=0, end=5), name="a", dtype="interval[float64, right]" - ) + ser = Series(interval_range(start=0, end=5), name="a") ser.iloc[1] = np.nan ser_orig = ser.copy() @@ -341,4 +338,4 @@ def test_fillna_inplace_ea_noop_shares_memory( else: assert not np.shares_memory(get_array(df, "b"), get_array(view, "b")) df.iloc[0, 1] = 100 - tm.assert_frame_equal(df_orig, view) + tm.assert_frame_equal(df_orig, view) \ No newline at end of file