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

'sort_index' do not consider 'axis` parameter in case of MultiIndex #1857

Closed
dchigarev opened this issue Jul 29, 2020 · 0 comments · Fixed by #1858
Closed

'sort_index' do not consider 'axis` parameter in case of MultiIndex #1857

dchigarev opened this issue Jul 29, 2020 · 0 comments · Fixed by #1858
Assignees
Labels
bug 🦗 Something isn't working
Milestone

Comments

@dchigarev
Copy link
Collaborator

Describe the problem

In a current sort_index implementation axis parameter do not consider in case of MultiIndex

if level is not None or (
(axis == 0 and isinstance(self.index, pandas.MultiIndex))
or (axis == 1 and isinstance(self.columns, pandas.MultiIndex))
):
return self.default_to_pandas(
pandas.DataFrame.sort_index,
level=level,
sort_remaining=sort_remaining,
**kwargs
)

@dchigarev dchigarev added the bug 🦗 Something isn't working label Jul 29, 2020
@dchigarev dchigarev added this to the 0.8.0 milestone Jul 29, 2020
@dchigarev dchigarev self-assigned this Jul 29, 2020
dchigarev added a commit to dchigarev/modin that referenced this issue Jul 29, 2020
Signed-off-by: Dmitry Chigarev <dmitry.chigarev@intel.com>
devin-petersohn pushed a commit that referenced this issue Jul 29, 2020
Signed-off-by: Dmitry Chigarev <dmitry.chigarev@intel.com>
aregm pushed a commit to aregm/modin that referenced this issue Sep 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🦗 Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant