Skip to content

Conversation

@jsngn
Copy link
Contributor

@jsngn jsngn commented Sep 27, 2025

Copy link
Member

@Alvaro-Kothe Alvaro-Kothe left a comment

Choose a reason for hiding this comment

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

Remove the files you modified from pyproject.toml

@jbrockmendel
Copy link
Member

@jsngn can you merge main and see if you can address the failing tests

@jsngn
Copy link
Contributor Author

jsngn commented Oct 19, 2025

@jbrockmendel Still failing on errors that are seemingly unrelated to my PR, I'm not sure why

@jbrockmendel
Copy link
Member

Some of those are unrelated and hopefully will resolve themselves next time you push to the branch. Others look real:

FAILED pandas/tests/frame/test_stack_unstack.py::TestStackUnstackMultiLevel::test_multi_level_stack_categorical[False] - ValueError: zip() argument 2 is longer than argument 1

@jsngn
Copy link
Contributor Author

jsngn commented Oct 19, 2025

Thanks for calling my attention to the issues. PR is passing now, please re-review, thank you! @Alvaro-Kothe @jbrockmendel

@jsngn jsngn requested a review from Alvaro-Kothe October 19, 2025 23:33
@mroeschke mroeschke added the Code Style Code style, linting, code_checks label Oct 21, 2025
@jbrockmendel
Copy link
Member

@jsngn can you address comments and merge main

@jsngn jsngn requested a review from Alvaro-Kothe November 3, 2025 23:15
Copy link
Member

@Alvaro-Kothe Alvaro-Kothe left a comment

Choose a reason for hiding this comment

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

Looks great overall.

Comment on lines +186 to +188
prefix = itertools.islice(
itertools.cycle([prefix]), data_to_encode.shape[1]
)
Copy link
Member

Choose a reason for hiding this comment

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

Nice Idea! But I think that itertools.repeat should be preferred.

Comment on lines +197 to +199
prefix_sep = itertools.islice(
itertools.cycle([prefix_sep]), data_to_encode.shape[1]
)
Copy link
Member

Choose a reason for hiding this comment

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

Same here

# Not all indices can accept None values.
Index(new_lev, dtype=lev.dtype) if None not in new_lev else new_lev
for new_lev, lev in zip(new_levs, columns.levels)
for new_lev, lev in zip(new_levs, columns.levels, strict=False)
Copy link
Member

Choose a reason for hiding this comment

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

Just to confirm: was there a failing test because this was True?

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

Labels

Code Style Code style, linting, code_checks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants