{"action":"created","issue":{"url":"https://api.github.com/repos/pydata/pandas/issues/12851","repository_url":"https://api.github.com/repos/pydata/pandas","labels_url":"https://api.github.com/repos/pydata/pandas/issues/12851/labels{/name}","comments_url":"https://api.github.com/repos/pydata/pandas/issues/12851/comments","events_url":"https://api.github.com/repos/pydata/pandas/issues/12851/events","html_url":"https://github.com/pydata/pandas/issues/12851","id":147243348,"number":12851,"title":"Support for `inplace` argument for str.replace","user":{"login":"joonro","id":1063143,"avatar_url":"https://avatars.githubusercontent.com/u/1063143?v=3","gravatar_id":"","url":"https://api.github.com/users/joonro","html_url":"https://github.com/joonro","followers_url":"https://api.github.com/users/joonro/followers","following_url":"https://api.github.com/users/joonro/following{/other_user}","gists_url":"https://api.github.com/users/joonro/gists{/gist_id}","starred_url":"https://api.github.com/users/joonro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joonro/subscriptions","organizations_url":"https://api.github.com/users/joonro/orgs","repos_url":"https://api.github.com/users/joonro/repos","events_url":"https://api.github.com/users/joonro/events{/privacy}","received_events_url":"https://api.github.com/users/joonro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-10T17:28:22Z","updated_at":"2016-04-10T17:34:09Z","closed_at":null,"body":"It would be great if there is a support for `inplace` argument for `str.replace`, so I can do\r\n\r\n```python\r\naddresses.str.replace('\\s+\\d{5}', '', inplace=True)\r\n```\r\n\r\ninstead of \r\n\r\n```python\r\naddresses = addresses.str.replace('\\s+\\d{5}', '')\r\n```\r\n\r\nThank you!\r\n"},"comment":{"url":"https://api.github.com/repos/pydata/pandas/issues/comments/208022884","html_url":"https://github.com/pydata/pandas/issues/12851#issuecomment-208022884","issue_url":"https://api.github.com/repos/pydata/pandas/issues/12851","id":208022884,"user":{"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},"created_at":"2016-04-10T17:34:09Z","updated_at":"2016-04-10T17:34:09Z","body":"using ``inplace`` is not idiomatic pandas. I don't think we should be adding any more of this. But as it not pervades things,  so if someone wants to propose a patch, then ok I guess."}}