{"action":"created","issue":{"url":"https://api.github.com/repos/pydata/pandas/issues/11582","labels_url":"https://api.github.com/repos/pydata/pandas/issues/11582/labels{/name}","comments_url":"https://api.github.com/repos/pydata/pandas/issues/11582/comments","events_url":"https://api.github.com/repos/pydata/pandas/issues/11582/events","html_url":"https://github.com/pydata/pandas/pull/11582","id":116547615,"number":11582,"title":"Make .str/.dt available for Series of type category with string/datetime","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":[{"url":"https://api.github.com/repos/pydata/pandas/labels/API%20Design","name":"API Design","color":"AD7FA8"},{"url":"https://api.github.com/repos/pydata/pandas/labels/Categorical","name":"Categorical","color":"e11d21"},{"url":"https://api.github.com/repos/pydata/pandas/labels/Enhancement","name":"Enhancement","color":"4E9A06"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-11-12T13:21:27Z","updated_at":"2015-11-15T21:03:47Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/pydata/pandas/pulls/11582","html_url":"https://github.com/pydata/pandas/pull/11582","diff_url":"https://github.com/pydata/pandas/pull/11582.diff","patch_url":"https://github.com/pydata/pandas/pull/11582.patch"},"body":"If a series is a type category and the underlying Categorical has categories of type string or datetime, then make it possible to use the `.str`/`.dt` assessor on such a series.\r\n\r\nThe string/dt methods work on the categories (and therefore fast if we have\r\nonly a few categories), but return a Series with a dtype other than\r\ncategory (integer, boolean, string,...), so that it is no different if we use\r\n`.str` / `.dt` on a series of type string or of type category.\r\n\r\nThe main reason for that is that I think things like `s.str.slice(...) + s.str.slice(...)` should work.\r\n\r\nCloses: https://github.com/pydata/pandas/issues/10661"},"comment":{"url":"https://api.github.com/repos/pydata/pandas/issues/comments/156853444","html_url":"https://github.com/pydata/pandas/pull/11582#issuecomment-156853444","issue_url":"https://api.github.com/repos/pydata/pandas/issues/11582","id":156853444,"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-11-15T21:03:47Z","updated_at":"2015-11-15T21:03:47Z","body":"Ok, @jreback, you were right, it needed more tests...\r\n\r\nRebased + new tests + fixes... Lets wait what travis says..."}}