{"action":"created","issue":{"url":"https://api.github.com/repos/pydata/pandas/issues/2940","labels_url":"https://api.github.com/repos/pydata/pandas/issues/2940/labels{/name}","comments_url":"https://api.github.com/repos/pydata/pandas/issues/2940/comments","events_url":"https://api.github.com/repos/pydata/pandas/issues/2940/events","html_url":"https://github.com/pydata/pandas/issues/2940","id":11443103,"number":2940,"title":"Implement DataFrame.sort for axis=1","user":{"login":"jseabold","id":296164,"avatar_url":"https://avatars.githubusercontent.com/u/296164?v=3","gravatar_id":"","url":"https://api.github.com/users/jseabold","html_url":"https://github.com/jseabold","followers_url":"https://api.github.com/users/jseabold/followers","following_url":"https://api.github.com/users/jseabold/following{/other_user}","gists_url":"https://api.github.com/users/jseabold/gists{/gist_id}","starred_url":"https://api.github.com/users/jseabold/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jseabold/subscriptions","organizations_url":"https://api.github.com/users/jseabold/orgs","repos_url":"https://api.github.com/users/jseabold/repos","events_url":"https://api.github.com/users/jseabold/events{/privacy}","received_events_url":"https://api.github.com/users/jseabold/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pydata/pandas/labels/Enhancement","name":"Enhancement","color":"4E9A06"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/pydata/pandas/milestones/33","html_url":"https://github.com/pydata/pandas/milestones/No%20action","labels_url":"https://api.github.com/repos/pydata/pandas/milestones/33/labels","id":997544,"number":33,"title":"No action","description":"A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n","creator":{"login":"jorisvandenbossche","id":1020496,"avatar_url":"https://avatars.githubusercontent.com/u/1020496?v=3","gravatar_id":"","url":"https://api.github.com/users/jorisvandenbossche","html_url":"https://github.com/jorisvandenbossche","followers_url":"https://api.github.com/users/jorisvandenbossche/followers","following_url":"https://api.github.com/users/jorisvandenbossche/following{/other_user}","gists_url":"https://api.github.com/users/jorisvandenbossche/gists{/gist_id}","starred_url":"https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jorisvandenbossche/subscriptions","organizations_url":"https://api.github.com/users/jorisvandenbossche/orgs","repos_url":"https://api.github.com/users/jorisvandenbossche/repos","events_url":"https://api.github.com/users/jorisvandenbossche/events{/privacy}","received_events_url":"https://api.github.com/users/jorisvandenbossche/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":71,"state":"open","created_at":"2015-02-26T19:29:05Z","updated_at":"2015-08-12T15:23:09Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2013-02-27T05:54:34Z","updated_at":"2015-08-12T15:23:23Z","closed_at":null,"body":"Am I missing something here?\r\n\r\n```\r\nimport numpy as np\r\nimport pandas\r\n\r\nx = np.array([[0,2,4],[2,0,7],[4,7,0]])\r\ndf = pandas.DataFrame(x, index=[\"a\",\"b\", \"c\"], columns=[\"a\",\"b\",\"c\"])\r\ndf.sort(\"b\", inplace=True)\r\n#raises error for axis=1\r\n#df.sort(\"c\", axis=1, inplace=True)\r\n# same with sort_index\r\n\r\n# desired result\r\ndf.sort(\"b\").T.sort(\"c\").T\r\n```"},"comment":{"url":"https://api.github.com/repos/pydata/pandas/issues/comments/130341219","html_url":"https://github.com/pydata/pandas/issues/2940#issuecomment-130341219","issue_url":"https://api.github.com/repos/pydata/pandas/issues/2940","id":130341219,"user":{"login":"jorisvandenbossche","id":1020496,"avatar_url":"https://avatars.githubusercontent.com/u/1020496?v=3","gravatar_id":"","url":"https://api.github.com/users/jorisvandenbossche","html_url":"https://github.com/jorisvandenbossche","followers_url":"https://api.github.com/users/jorisvandenbossche/followers","following_url":"https://api.github.com/users/jorisvandenbossche/following{/other_user}","gists_url":"https://api.github.com/users/jorisvandenbossche/gists{/gist_id}","starred_url":"https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jorisvandenbossche/subscriptions","organizations_url":"https://api.github.com/users/jorisvandenbossche/orgs","repos_url":"https://api.github.com/users/jorisvandenbossche/repos","events_url":"https://api.github.com/users/jorisvandenbossche/events{/privacy}","received_events_url":"https://api.github.com/users/jorisvandenbossche/received_events","type":"User","site_admin":false},"created_at":"2015-08-12T15:23:23Z","updated_at":"2015-08-12T15:23:23Z","body":"new issue at #10806"}}