{"action":"created","issue":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/4355","labels_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/4355/labels{/name}","comments_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/4355/comments","events_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/4355/events","html_url":"https://github.com/scikit-learn/scikit-learn/issues/4355","id":60184881,"number":4355,"title":"DictVectorizer.restrict docstring unclear","user":{"login":"amueller","id":449558,"avatar_url":"https://avatars.githubusercontent.com/u/449558?v=3","gravatar_id":"","url":"https://api.github.com/users/amueller","html_url":"https://github.com/amueller","followers_url":"https://api.github.com/users/amueller/followers","following_url":"https://api.github.com/users/amueller/following{/other_user}","gists_url":"https://api.github.com/users/amueller/gists{/gist_id}","starred_url":"https://api.github.com/users/amueller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amueller/subscriptions","organizations_url":"https://api.github.com/users/amueller/orgs","repos_url":"https://api.github.com/users/amueller/repos","events_url":"https://api.github.com/users/amueller/events{/privacy}","received_events_url":"https://api.github.com/users/amueller/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/labels/Documentation","name":"Documentation","color":"0b02e1"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-07T02:06:42Z","updated_at":"2015-03-07T06:00:26Z","closed_at":null,"body":"To me the DictVectorizer.restrict docsting is unclear and I didn't understand it when reading it.\r\nIt is missing a return statement. Also, the function modifies the estimator in-place, which is a rather rare thing in scikit-learn (only other example I can think of is ``sparsify``), so that should be made more explicit.\r\nMaybe also give an example?"},"comment":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/comments/77675485","html_url":"https://github.com/scikit-learn/scikit-learn/issues/4355#issuecomment-77675485","issue_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/4355","id":77675485,"user":{"login":"vortex-ape","id":4329421,"avatar_url":"https://avatars.githubusercontent.com/u/4329421?v=3","gravatar_id":"","url":"https://api.github.com/users/vortex-ape","html_url":"https://github.com/vortex-ape","followers_url":"https://api.github.com/users/vortex-ape/followers","following_url":"https://api.github.com/users/vortex-ape/following{/other_user}","gists_url":"https://api.github.com/users/vortex-ape/gists{/gist_id}","starred_url":"https://api.github.com/users/vortex-ape/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vortex-ape/subscriptions","organizations_url":"https://api.github.com/users/vortex-ape/orgs","repos_url":"https://api.github.com/users/vortex-ape/repos","events_url":"https://api.github.com/users/vortex-ape/events{/privacy}","received_events_url":"https://api.github.com/users/vortex-ape/received_events","type":"User","site_admin":false},"created_at":"2015-03-07T06:00:26Z","updated_at":"2015-03-07T06:00:26Z","body":"@amueller - Created #4356 "}}