{"action":"closed","issue":{"url":"https://api.github.com/repos/pydata/pandas/issues/13536","repository_url":"https://api.github.com/repos/pydata/pandas","labels_url":"https://api.github.com/repos/pydata/pandas/issues/13536/labels{/name}","comments_url":"https://api.github.com/repos/pydata/pandas/issues/13536/comments","events_url":"https://api.github.com/repos/pydata/pandas/issues/13536/events","html_url":"https://github.com/pydata/pandas/issues/13536","id":163162429,"number":13536,"title":"ENH: Support Stata variable labels","user":{"login":"TomAugspurger","id":1312546,"avatar_url":"https://avatars.githubusercontent.com/u/1312546?v=3","gravatar_id":"","url":"https://api.github.com/users/TomAugspurger","html_url":"https://github.com/TomAugspurger","followers_url":"https://api.github.com/users/TomAugspurger/followers","following_url":"https://api.github.com/users/TomAugspurger/following{/other_user}","gists_url":"https://api.github.com/users/TomAugspurger/gists{/gist_id}","starred_url":"https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomAugspurger/subscriptions","organizations_url":"https://api.github.com/users/TomAugspurger/orgs","repos_url":"https://api.github.com/users/TomAugspurger/repos","events_url":"https://api.github.com/users/TomAugspurger/events{/privacy}","received_events_url":"https://api.github.com/users/TomAugspurger/received_events","type":"User","site_admin":false},"labels":[{"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%20Medium","name":"Effort Medium","color":"006b75"},{"url":"https://api.github.com/repos/pydata/pandas/labels/Enhancement","name":"Enhancement","color":"4E9A06"},{"url":"https://api.github.com/repos/pydata/pandas/labels/IO%20Stata","name":"IO Stata","color":"5319e7"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/pydata/pandas/milestones/40","html_url":"https://github.com/pydata/pandas/milestones/0.19.0","labels_url":"https://api.github.com/repos/pydata/pandas/milestones/40/labels","id":1639795,"number":40,"title":"0.19.0","description":"","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":192,"closed_issues":315,"state":"open","created_at":"2016-03-11T21:24:45Z","updated_at":"2016-07-19T01:59:54Z","due_on":"2016-08-30T22:00:00Z","closed_at":null},"comments":0,"created_at":"2016-06-30T13:14:56Z","updated_at":"2016-07-19T01:59:54Z","closed_at":"2016-07-19T01:59:54Z","body":"xref https://github.com/pydata/pandas/issues/13535#issuecomment-229652201\r\n\r\ncc @frehoy\r\n\r\n> It seems that is is almost implemented here.\r\n> \r\n> See\r\n> https://github.com/pydata/pandas/blob/master/pandas/io/stata.py#L2057\r\n> \r\n> and\r\n> \r\n> https://github.com/pydata/pandas/blob/master/pandas/io/stata.py#L2134\r\n> \r\n> As you can see, this always passes the default None and so no labels are written.\r\n> \r\n> Mostly needs an external interface and a tiny amount of wiring up. And testing, esp that the labels can be read into Stata.\r\n\r\nA possible API\r\n\r\n```python\r\nimport pandas as pd\r\nd = {'one' : [1., 2., 3., 4.]}\r\ndf = pd.DataFrame(d)\r\nlabdict = {'one': 'foo'}\r\ndf.to_stata('test.dta', write_index=False, variab_labels=labdict)\r\n```\r\n"}}
{"actor":{"display_login":"jreback"}}