Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: _compute_axis_labels_and_lengths works wrong with MultiIndex in some cases #5364

Closed
anmyachev opened this issue Dec 6, 2022 · 0 comments · Fixed by #5355
Closed

BUG: _compute_axis_labels_and_lengths works wrong with MultiIndex in some cases #5364

anmyachev opened this issue Dec 6, 2022 · 0 comments · Fixed by #5355
Assignees
Labels
bug 🦗 Something isn't working Internals Internal modin functionality P2 Minor bugs or low-priority feature requests

Comments

@anmyachev
Copy link
Collaborator

#4601 found the following problem:

If we have a MultiIndex, but the first partition is empty, which may happen when
the dataframe is small, `_compute_axis_labels_and_lengths` will return us a flattened
MultiIndex - i.e. an Index consisting of tuples. This is because the MultiIndex from
the remaining partitions is appended to an empty flat Index, which results in a
flattened index. To work around this, we need to convert this flattened Index back
into a MultiIndex.
@anmyachev anmyachev added bug 🦗 Something isn't working Internals Internal modin functionality labels Dec 6, 2022
@anmyachev anmyachev self-assigned this Dec 6, 2022
@mvashishtha mvashishtha added the P2 Minor bugs or low-priority feature requests label Dec 6, 2022
mvashishtha pushed a commit that referenced this issue Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🦗 Something isn't working Internals Internal modin functionality P2 Minor bugs or low-priority feature requests
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants