{"action":"created","issue":{"url":"https://api.github.com/repos/pydata/pandas/issues/9347","labels_url":"https://api.github.com/repos/pydata/pandas/issues/9347/labels{/name}","comments_url":"https://api.github.com/repos/pydata/pandas/issues/9347/comments","events_url":"https://api.github.com/repos/pydata/pandas/issues/9347/events","html_url":"https://github.com/pydata/pandas/pull/9347","id":55338519,"number":9347,"title":"Categorical: don't sort the categoricals if Categorical(..., ordered=False)","user":{"login":"JanSchulz","id":890156,"avatar_url":"https://avatars.githubusercontent.com/u/890156?v=3","gravatar_id":"","url":"https://api.github.com/users/JanSchulz","html_url":"https://github.com/JanSchulz","followers_url":"https://api.github.com/users/JanSchulz/followers","following_url":"https://api.github.com/users/JanSchulz/following{/other_user}","gists_url":"https://api.github.com/users/JanSchulz/gists{/gist_id}","starred_url":"https://api.github.com/users/JanSchulz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JanSchulz/subscriptions","organizations_url":"https://api.github.com/users/JanSchulz/orgs","repos_url":"https://api.github.com/users/JanSchulz/repos","events_url":"https://api.github.com/users/JanSchulz/events{/privacy}","received_events_url":"https://api.github.com/users/JanSchulz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-01-23T21:58:53Z","updated_at":"2015-01-25T20:42:41Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/pydata/pandas/pulls/9347","html_url":"https://github.com/pydata/pandas/pull/9347","diff_url":"https://github.com/pydata/pandas/pull/9347.diff","patch_url":"https://github.com/pydata/pandas/pull/9347.patch"},"body":"In https://github.com/mwaskom/seaborn/issues/361 it was discussed that lexicographical sorting the categories is only appropiate if an order is specified/implied. If this is explicitly not done, e.g. with `Categorical(..., ordered=False)` then the order should be taken from the order of appearance, similar to the current `Series.unique()` implementation.\r\n"},"comment":{"url":"https://api.github.com/repos/pydata/pandas/issues/comments/71392272","html_url":"https://github.com/pydata/pandas/pull/9347#issuecomment-71392272","issue_url":"https://api.github.com/repos/pydata/pandas/issues/9347","id":71392272,"user":{"login":"JanSchulz","id":890156,"avatar_url":"https://avatars.githubusercontent.com/u/890156?v=3","gravatar_id":"","url":"https://api.github.com/users/JanSchulz","html_url":"https://github.com/JanSchulz","followers_url":"https://api.github.com/users/JanSchulz/followers","following_url":"https://api.github.com/users/JanSchulz/following{/other_user}","gists_url":"https://api.github.com/users/JanSchulz/gists{/gist_id}","starred_url":"https://api.github.com/users/JanSchulz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JanSchulz/subscriptions","organizations_url":"https://api.github.com/users/JanSchulz/orgs","repos_url":"https://api.github.com/users/JanSchulz/repos","events_url":"https://api.github.com/users/JanSchulz/events{/privacy}","received_events_url":"https://api.github.com/users/JanSchulz/received_events","type":"User","site_admin":false},"created_at":"2015-01-25T20:42:41Z","updated_at":"2015-01-25T20:42:41Z","body":"actually we tried to hide `pd.Categorical()` and promoted `s.astype(\"category\")` and `s.cat` instead, so I don't think that's a good option...\r\n"}}