Skip to content

BUG: Correct Formating of empty frozenset in object Series#66200

Open
Johnhi19 wants to merge 2 commits into
pandas-dev:mainfrom
Johnhi19:format-empty-frozensets
Open

BUG: Correct Formating of empty frozenset in object Series#66200
Johnhi19 wants to merge 2 commits into
pandas-dev:mainfrom
Johnhi19:format-empty-frozensets

Conversation

@Johnhi19

@Johnhi19 Johnhi19 commented Jul 7, 2026

Copy link
Copy Markdown

@Johnhi19 Johnhi19 changed the title fix: correct formating of empty frozensets BUG: Correct Formating of empty frozensets Jul 7, 2026
@Johnhi19 Johnhi19 changed the title BUG: Correct Formating of empty frozensets BUG: Correct Formating of empty frozenset in object Series Jul 7, 2026
@jbrockmendel

Copy link
Copy Markdown
Member

Can you test this inside a Series

@Johnhi19

Johnhi19 commented Jul 8, 2026

Copy link
Copy Markdown
Author

@jbrockmendel Done, added a test which targets this inside a Series

assert "frozenset" in result

expected = "0 frozenset()\ndtype: object"
assert result == expected

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this renders L94 and 95 redundant

str(Series(dtype=object))

def test_empty_frozenset(self):
s = Series([frozenset()])

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick pls avoid 1-letter variable names

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: Incorrect formatting of empty frozenset in object Series

2 participants