From 530638f898d490792fdf4c802e35ef1df350b533 Mon Sep 17 00:00:00 2001 From: Dawid Makar Date: Tue, 26 Sep 2023 10:41:57 +0200 Subject: [PATCH] Automatic refactoring. Refactoring step id: UUID('546353a9-e2db-43f5-b904-e500c73815e4') --- 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