Skip to content

BUG/ENH: sort_values(by=index_label, axis=1) #10806

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

Closed
jreback opened this issue Aug 12, 2015 · 1 comment
Closed

BUG/ENH: sort_values(by=index_label, axis=1) #10806

jreback opened this issue Aug 12, 2015 · 1 comment
Labels
Enhancement Reshaping Concat, Merge/Join, Stack/Unstack, Explode
Milestone

Comments

@jreback
Copy link
Contributor

jreback commented Aug 12, 2015

xref #10726

This is possible, just not implemented

In [3]: df  = DataFrame(np.arange(16).reshape(4, 4), index=[1, 2, 3, 4], columns=['A', 'B', 'C', 'D'])

In [4]: df
Out[4]: 
    A   B   C   D
1   0   1   2   3
2   4   5   6   7
3   8   9  10  11
4  12  13  14  15

In [5]: df.sort_values(by=1,axis=1)
ValueError: When sorting by column, axis must be 0 (rows)
@jreback jreback added Bug Enhancement Reshaping Concat, Merge/Join, Stack/Unstack, Explode Difficulty Intermediate labels Aug 12, 2015
@jreback jreback added this to the 0.17.0 milestone Aug 12, 2015
@jorisvandenbossche
Copy link
Member

Old issue was #2940, will close that one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Reshaping Concat, Merge/Join, Stack/Unstack, Explode
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants