Skip to content

Commit 3d97dcc

Browse files
committed
updated test_data_frame_value_counts_subset
1 parent 777482f commit 3d97dcc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pandas/tests/frame/methods/test_value_counts.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,7 @@ def test_data_frame_value_counts_subset(nulls_fixture):
157157
result = df.value_counts("first_name")
158158
expected = pd.Series(
159159
data=[2, 1, 1],
160-
index=pd.MultiIndex.from_arrays(
161-
[["John", "Anne", "Beth"]], names=["first_name"]
162-
),
160+
index=pd.Index(["John", "Anne", "Beth"], name="first_name"),
163161
)
164162

165163
tm.assert_series_equal(result, expected)

0 commit comments

Comments
 (0)