From 7276391a4b6c0996073fef356d9a03c91d631975 Mon Sep 17 00:00:00 2001 From: Dawid Makar Date: Tue, 26 Sep 2023 22:53:06 +0200 Subject: [PATCH] Automatic refactoring. Refactoring step id: UUID('51441b7c-d6e8-4efa-8b6e-f140c309db75') --- pandas/tests/frame/methods/test_value_counts.py | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/pandas/tests/frame/methods/test_value_counts.py b/pandas/tests/frame/methods/test_value_counts.py index f30db91f82b60..1d3b38bd2cea6 100644 --- a/pandas/tests/frame/methods/test_value_counts.py +++ b/pandas/tests/frame/methods/test_value_counts.py @@ -188,18 +188,4 @@ def test_value_counts_categorical_future_warning(): ), name="count", ) - tm.assert_series_equal(result, expected) - - -def test_value_counts_with_missing_category(): - # GH-54836 - df = pd.DataFrame({"a": pd.Categorical([1, 2, 4], categories=[1, 2, 3, 4])}) - result = df.value_counts() - expected = pd.Series( - [1, 1, 1, 0], - index=pd.MultiIndex.from_arrays( - [pd.CategoricalIndex([1, 2, 4, 3], categories=[1, 2, 3, 4], name="a")] - ), - name="count", - ) - tm.assert_series_equal(result, expected) + tm.assert_series_equal(result, expected) \ No newline at end of file