DOC: update the Series.reset_index DocString
State: closed

Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):

- [x] PR title is "DOC: update the <your-function-or-method> docstring"
- [x] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [x] The PEP8 style check passes: `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] The html version looks good: `python doc/make.py --single <your-function-or-method>`
- [x] It has been proofread on language by another sprint participant

Please include the output of the validation script below between the "```" ticks:

```
# paste output of "scripts/validate_docstrings.py <your-function-or-method>" here
# between the "```" (remove this comment, but keep the "```")

################################################################################
############## Docstring (pandas.core.series.Series.reset_index)  ##############
################################################################################

Reset the index of the Serie.

For a Serie with multi-level index, return a new Serie with labeling
information in the columns under the index names, defaulting to ‘level_0’,
‘level_1’, etc. if any are None. For a standard index,
the index name will be used (if set), otherwise a default
‘index’ or ‘level_0’ (if ‘index’ is already taken) will be used.

Parameters
----------
level : `int`, `str`, `tuple`, or `list`, default `None`
    Only remove the given levels from the index. Removes all levels by
    default.
drop : `boolean`, default `False`
    Do not try to insert index into dataframe columns.
name : `object`, default `None`
    The name of the column corresponding to the Series values.
inplace : `boolean`, default `False`
    Modify the Series in place (do not create a new object).

Returns
----------
resetted : `DataFrame`, or Series if `drop == True`

See Also
--------
:meth:`pandas.DataFrame.reset_index`: Analogous funciton for DataFrame

Examples
--------
>>> s = pd.Series([1, 2, 3, 4], index=pd.Index(['a', 'b', 'c', 'd'],
...                                            name = 'idx'))
>>> s.reset_index()
  idx  0
0   a  1
1   b  2
2   c  3
3   d  4

>>> arrays = [np.array(['bar', 'bar', 'baz', 'baz', 'foo',
...                     'foo', 'qux', 'qux']),
...           np.array(['one', 'two', 'one', 'two', 'one', 'two',
...                     'one', 'two'])]
>>> s2 = pd.Series(
...     range(8),
...     index=pd.MultiIndex.from_arrays(arrays,
...                                     names=['a', 'b']))
>>> s2.reset_index(level='a')
       a  0
b
one  bar  0
two  bar  1
one  baz  2
two  baz  3
one  foo  4
two  foo  5
one  qux  6
two  qux  7

################################################################################
################################## Validation ##################################
################################################################################

Docstring for "pandas.core.series.Series.reset_index" correct. :)
```


Labels:
name: Docs
name: Reshaping
description: Concat, Merge/Join, Stack/Unstack, Explode

Comments:
Hello @ludusrusso! Thanks for updating the PR.



Cheers ! There are no PEP8 issues in this Pull Request. :beers: 

##### Comment last updated on March 15, 2018 at 20:46 Hours UTC
Update pull request after review! Tnx!
Thanks you all! I've updated the examples with comments!
@ludusrusso did you run the validation script again after updating?
# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/20107?src=pr&el=h1) Report
> Merging [#20107](https://codecov.io/gh/pandas-dev/pandas/pull/20107?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/4131149fa9ac1d6d4a405589a1c6e63187db0662?src=pr&el=desc) will **increase** coverage by `<.01%`.
> The diff coverage is `n/a`.

[![Impacted file tree graph](https://codecov.io/gh/pandas-dev/pandas/pull/20107/graphs/tree.svg?height=150&width=650&token=eZ4WkYLtcO&src=pr)](https://codecov.io/gh/pandas-dev/pandas/pull/20107?src=pr&el=tree)

```diff
@@            Coverage Diff             @@
##           master   #20107      +/-   ##
==========================================
+ Coverage   91.72%   91.72%   +<.01%     
==========================================
  Files         150      150              
  Lines       49149    49159      +10     
==========================================
+ Hits        45083    45093      +10     
  Misses       4066     4066
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `90.11% <ø> (ø)` | :arrow_up: |
| #single | `41.85% <ø> (ø)` | :arrow_up: |

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/20107?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/core/series.py](https://codecov.io/gh/pandas-dev/pandas/pull/20107/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvc2VyaWVzLnB5) | `93.85% <ø> (-0.01%)` | :arrow_down: |
| [pandas/core/base.py](https://codecov.io/gh/pandas-dev/pandas/pull/20107/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvYmFzZS5weQ==) | `96.78% <0%> (-0.02%)` | :arrow_down: |
| [pandas/core/indexes/datetimes.py](https://codecov.io/gh/pandas-dev/pandas/pull/20107/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvaW5kZXhlcy9kYXRldGltZXMucHk=) | `95.64% <0%> (-0.01%)` | :arrow_down: |
| [pandas/core/indexes/base.py](https://codecov.io/gh/pandas-dev/pandas/pull/20107/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvaW5kZXhlcy9iYXNlLnB5) | `96.66% <0%> (-0.01%)` | :arrow_down: |
| [pandas/core/strings.py](https://codecov.io/gh/pandas-dev/pandas/pull/20107/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvc3RyaW5ncy5weQ==) | `98.32% <0%> (ø)` | :arrow_up: |
| [pandas/core/indexing.py](https://codecov.io/gh/pandas-dev/pandas/pull/20107/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvaW5kZXhpbmcucHk=) | `93.02% <0%> (ø)` | :arrow_up: |
| [pandas/core/indexes/timedeltas.py](https://codecov.io/gh/pandas-dev/pandas/pull/20107/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvaW5kZXhlcy90aW1lZGVsdGFzLnB5) | `91.03% <0%> (ø)` | :arrow_up: |
| [pandas/core/indexes/multi.py](https://codecov.io/gh/pandas-dev/pandas/pull/20107/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvaW5kZXhlcy9tdWx0aS5weQ==) | `95.06% <0%> (ø)` | :arrow_up: |
| [pandas/core/generic.py](https://codecov.io/gh/pandas-dev/pandas/pull/20107/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvZ2VuZXJpYy5weQ==) | `95.84% <0%> (ø)` | :arrow_up: |
| ... and [7 more](https://codecov.io/gh/pandas-dev/pandas/pull/20107/diff?src=pr&el=tree-more) | |

------

[Continue to review full report at Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/20107?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/20107?src=pr&el=footer). Last update [4131149...8b0cefd](https://codecov.io/gh/pandas-dev/pandas/pull/20107?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).

@jorisvandenbossche you're right.. I've checked it this time!
Very nice docstring, thanks @ludusrusso !