Skip to content

Commit a6d6353

Browse files
committed
Update test naming and remove assertion on repr
1 parent 8a64eaa commit a6d6353

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

pandas/tests/frame/methods/test_describe.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -367,22 +367,14 @@ def test_describe_percentiles_integer_idx(self):
367367
)
368368
tm.assert_frame_equal(result, expected)
369369

370-
def test_describe_does_not_raise_error(self):
370+
def test_describe_does_not_raise_error_for_dictlike_elements(self):
371371
# GH#32409
372372
df = DataFrame([{"test": {"a": "1"}}, {"test": {"a": "2"}}])
373373
expected = DataFrame(
374374
{"test": [2, 2, {"a": "1"}, 1]}, index=["count", "unique", "top", "freq"]
375375
)
376376
result = df.describe()
377377
tm.assert_frame_equal(result, expected)
378-
exp_repr = (
379-
" test\n"
380-
"count 2\n"
381-
"unique 2\n"
382-
"top {'a': '1'}\n"
383-
"freq 1"
384-
)
385-
assert repr(result) == exp_repr
386378

387379
@pytest.mark.parametrize("exclude", ["x", "y", ["x", "y"], ["x", "z"]])
388380
def test_describe_when_include_all_exclude_not_allowed(self, exclude):

0 commit comments

Comments
 (0)