We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11e3dc2 commit 5e5da07Copy full SHA for 5e5da07
pandas/io/formats/printing.py
@@ -112,7 +112,7 @@ def _pprint_seq(
112
if isinstance(seq, set):
113
fmt = "{{{body}}}"
114
elif isinstance(seq, frozenset):
115
- fmt = "frozenset({body})"
+ fmt = "frozenset({{{body}}})"
116
else:
117
fmt = "[{body}]" if hasattr(seq, "__setitem__") else "({body})"
118
pandas/tests/io/formats/test_printing.py
@@ -83,7 +83,7 @@ def test_repr_mapping(self):
83
assert printing.pprint_thing(MyMapping()) == "{'a': 4, 'b': 4}"
84
85
def test_repr_frozenset(self):
86
- assert printing.pprint_thing(frozenset([1, 2])) == "frozenset(1, 2)"
+ assert printing.pprint_thing(frozenset([1, 2])) == "frozenset({1, 2})"
87
88
89
class TestFormatBase:
0 commit comments