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

for col, pre, sep in zip(data_to_encode.items(), prefix, prefix_sep):
for col, pre, sep in zip(
data_to_encode.items(), prefix, prefix_sep, 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.

I think it is possible to make strict=True if prefix and prefix_sep aren't an infinite generator created with itertools.cycle.

levs = (
[lev[c] if c >= 0 else None for c in codes]
for lev, codes in zip(columns.levels[:-1], columns.codes[:-1])
for lev, codes in zip(columns.levels[:-1], columns.codes[:-1], 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.

Why is this False?

@mroeschke mroeschke added the Code Style Code style, linting, code_checks label Oct 21, 2025
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

4 participants