{"action":"created","issue":{"url":"https://api.github.com/repos/pandas-dev/pandas/issues/19930","repository_url":"https://api.github.com/repos/pandas-dev/pandas","labels_url":"https://api.github.com/repos/pandas-dev/pandas/issues/19930/labels{/name}","comments_url":"https://api.github.com/repos/pandas-dev/pandas/issues/19930/comments","events_url":"https://api.github.com/repos/pandas-dev/pandas/issues/19930/events","html_url":"https://github.com/pandas-dev/pandas/pull/19930","id":300794660,"number":19930,"title":"DOC: fix Series.reset_index example","user":{"login":"philngo","id":2687443,"avatar_url":"https://avatars1.githubusercontent.com/u/2687443?v=4","gravatar_id":"","url":"https://api.github.com/users/philngo","html_url":"https://github.com/philngo","followers_url":"https://api.github.com/users/philngo/followers","following_url":"https://api.github.com/users/philngo/following{/other_user}","gists_url":"https://api.github.com/users/philngo/gists{/gist_id}","starred_url":"https://api.github.com/users/philngo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philngo/subscriptions","organizations_url":"https://api.github.com/users/philngo/orgs","repos_url":"https://api.github.com/users/philngo/repos","events_url":"https://api.github.com/users/philngo/events{/privacy}","received_events_url":"https://api.github.com/users/philngo/received_events","type":"User","site_admin":false},"labels":[{"id":134699,"url":"https://api.github.com/repos/pandas-dev/pandas/labels/Docs","name":"Docs","color":"3465A4","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-02-27T21:12:59Z","updated_at":"2018-02-27T23:42:40Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/pandas-dev/pandas/pulls/19930","html_url":"https://github.com/pandas-dev/pandas/pull/19930","diff_url":"https://github.com/pandas-dev/pandas/pull/19930.diff","patch_url":"https://github.com/pandas-dev/pandas/pull/19930.patch"},"body":"- [ ] closes #xxxx\r\n- [ ] tests added / passed\r\n- [ ] passes `git diff upstream/master -u -- \"*.py\" | flake8 --diff`\r\n- [ ] whatsnew entry\r\n\r\nShow correct values in idx column."},"comment":{"url":"https://api.github.com/repos/pandas-dev/pandas/issues/comments/369067763","html_url":"https://github.com/pandas-dev/pandas/pull/19930#issuecomment-369067763","issue_url":"https://api.github.com/repos/pandas-dev/pandas/issues/19930","id":369067763,"user":{"login":"philngo","id":2687443,"avatar_url":"https://avatars1.githubusercontent.com/u/2687443?v=4","gravatar_id":"","url":"https://api.github.com/users/philngo","html_url":"https://github.com/philngo","followers_url":"https://api.github.com/users/philngo/followers","following_url":"https://api.github.com/users/philngo/following{/other_user}","gists_url":"https://api.github.com/users/philngo/gists{/gist_id}","starred_url":"https://api.github.com/users/philngo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philngo/subscriptions","organizations_url":"https://api.github.com/users/philngo/orgs","repos_url":"https://api.github.com/users/philngo/repos","events_url":"https://api.github.com/users/philngo/events{/privacy}","received_events_url":"https://api.github.com/users/philngo/received_events","type":"User","site_admin":false},"created_at":"2018-02-27T23:42:40Z","updated_at":"2018-02-27T23:42:40Z","author_association":"NONE","body":"Not sure if I'm missing a doctest gotcha here, but I still get the following output. Probably a simple fix but I don't see it.\r\n\r\n`$ pytest --doctest-modules pandas/core/series.py -k reset_index`\r\n\r\n```\r\n============================================== FAILURES ===============================================\r\n___________________________ [doctest] pandas.core.series.Series.reset_index ___________________________\r\n1029\r\n1030         >>> arrays = [np.array(['bar', 'bar', 'baz', 'baz', 'foo',\r\n1031         ...                     'foo', 'qux', 'qux']),\r\n1032         ...           np.array(['one', 'two', 'one', 'two', 'one', 'two',\r\n1033         ...                     'one', 'two'])]\r\n1034         >>> s2 = pd.Series(\r\n1035         ...     range(8),\r\n1036         ...     index=pd.MultiIndex.from_arrays(arrays,\r\n1037         ...                                     names=['a', 'b']))\r\n1038         >>> s2.reset_index(level='a')\r\nDifferences (unified diff with -expected +actual):\r\n    @@ -1,4 +1,4 @@\r\n            a  0\r\n    -b\r\n    +b\r\n     one  bar  0\r\n     two  bar  1\r\n```"}}
{"actor":{"display_login":"philngo"}}