{"action":"created","issue":{"url":"https://api.github.com/repos/pydata/pandas/issues/10778","labels_url":"https://api.github.com/repos/pydata/pandas/issues/10778/labels{/name}","comments_url":"https://api.github.com/repos/pydata/pandas/issues/10778/comments","events_url":"https://api.github.com/repos/pydata/pandas/issues/10778/events","html_url":"https://github.com/pydata/pandas/issues/10778","id":99907374,"number":10778,"title":"df.to_json segfaults with categorical column types","user":{"login":"blink1073","id":2096628,"avatar_url":"https://avatars.githubusercontent.com/u/2096628?v=3","gravatar_id":"","url":"https://api.github.com/users/blink1073","html_url":"https://github.com/blink1073","followers_url":"https://api.github.com/users/blink1073/followers","following_url":"https://api.github.com/users/blink1073/following{/other_user}","gists_url":"https://api.github.com/users/blink1073/gists{/gist_id}","starred_url":"https://api.github.com/users/blink1073/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blink1073/subscriptions","organizations_url":"https://api.github.com/users/blink1073/orgs","repos_url":"https://api.github.com/users/blink1073/repos","events_url":"https://api.github.com/users/blink1073/events{/privacy}","received_events_url":"https://api.github.com/users/blink1073/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pydata/pandas/labels/Categorical","name":"Categorical","color":"e11d21"},{"url":"https://api.github.com/repos/pydata/pandas/labels/Difficulty%20Intermediate","name":"Difficulty Intermediate","color":"fbca04"},{"url":"https://api.github.com/repos/pydata/pandas/labels/Effort%20Low","name":"Effort Low","color":"006b75"},{"url":"https://api.github.com/repos/pydata/pandas/labels/IO%20JSON","name":"IO JSON","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/pydata/pandas/milestones/32","html_url":"https://github.com/pydata/pandas/milestones/Next%20Major%20Release","labels_url":"https://api.github.com/repos/pydata/pandas/milestones/32/labels","id":933188,"number":32,"title":"Next Major Release","description":"after 0.16.1 of course","creator":{"login":"jreback","id":953992,"avatar_url":"https://avatars.githubusercontent.com/u/953992?v=3","gravatar_id":"","url":"https://api.github.com/users/jreback","html_url":"https://github.com/jreback","followers_url":"https://api.github.com/users/jreback/followers","following_url":"https://api.github.com/users/jreback/following{/other_user}","gists_url":"https://api.github.com/users/jreback/gists{/gist_id}","starred_url":"https://api.github.com/users/jreback/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jreback/subscriptions","organizations_url":"https://api.github.com/users/jreback/orgs","repos_url":"https://api.github.com/users/jreback/repos","events_url":"https://api.github.com/users/jreback/events{/privacy}","received_events_url":"https://api.github.com/users/jreback/received_events","type":"User","site_admin":false},"open_issues":974,"closed_issues":117,"state":"open","created_at":"2015-01-13T10:53:19Z","updated_at":"2016-01-29T15:32:09Z","due_on":"2016-01-31T05:00:00Z","closed_at":null},"comments":6,"created_at":"2015-08-09T15:55:45Z","updated_at":"2016-01-30T10:23:09Z","closed_at":null,"body":"This code from the Categorical tutorial:\r\n\r\n```python\r\ndf = pd.DataFrame({\"A\":[\"a\",\"b\",\"c\",\"a\"]})\r\ndf[\"B\"] = df[\"A\"].astype('category')\r\n```\r\n\r\nWill segfault when `df.to_json` is called.  Tested on:\r\n\r\n```bash\r\nPython 3.4.3 |Anaconda 2.3.0 (x86_64)| (default, Mar  6 2015, 12:07:41)\r\n[GCC 4.2.1 (Apple Inc. build 5577)] on darwin\r\n$ conda list  | grep pandas\r\npandas                    0.16.2               np19py34_0\r\n```"},"comment":{"url":"https://api.github.com/repos/pydata/pandas/issues/comments/177137642","html_url":"https://github.com/pydata/pandas/issues/10778#issuecomment-177137642","issue_url":"https://api.github.com/repos/pydata/pandas/issues/10778","id":177137642,"user":{"login":"Timusan","id":1012919,"avatar_url":"https://avatars.githubusercontent.com/u/1012919?v=3","gravatar_id":"","url":"https://api.github.com/users/Timusan","html_url":"https://github.com/Timusan","followers_url":"https://api.github.com/users/Timusan/followers","following_url":"https://api.github.com/users/Timusan/following{/other_user}","gists_url":"https://api.github.com/users/Timusan/gists{/gist_id}","starred_url":"https://api.github.com/users/Timusan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Timusan/subscriptions","organizations_url":"https://api.github.com/users/Timusan/orgs","repos_url":"https://api.github.com/users/Timusan/repos","events_url":"https://api.github.com/users/Timusan/events{/privacy}","received_events_url":"https://api.github.com/users/Timusan/received_events","type":"User","site_admin":false},"created_at":"2016-01-30T10:23:09Z","updated_at":"2016-01-30T10:23:09Z","body":"@tollycoast, I may be wrong, but I think your question is totally unrelated to the issue at hand."}}