DOC: remove empty attribute/method lists from class docstrings html page
State: closed

Follow-up on https://github.com/pandas-dev/pandas/pull/18202 (RangeIndex was forgotten)

This is not really ideal, as we then get warnings about None not being a method. Maybe we could somehow connect with the numpydoc process and after its processing remove it ..

Labels:
name: Docs

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







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

##### Comment last updated on March 01, 2018 at 12:51 Hours UTC
> Maybe we could somehow connect with the numpydoc process and after its processing remove it ..

So that is what I did. Not fully sure this is a good idea, as it adds to the technical debt of our complex doc building machinery, but, it solves the warnings and ugly html output (see eg methods section in http://pandas-docs.github.io/pandas-docs-travis/generated/pandas.Int64Index.html#pandas.Int64Index)
# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/19949?src=pr&el=h1) Report
> Merging [#19949](https://codecov.io/gh/pandas-dev/pandas/pull/19949?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/c8859b57b891701f250fb05f2cc60d2e6cae2d6b?src=pr&el=desc) will **increase** coverage by `49.85%`.
> The diff coverage is `n/a`.

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

```diff
@@             Coverage Diff             @@
##           master   #19949       +/-   ##
===========================================
+ Coverage   41.83%   91.68%   +49.85%     
===========================================
  Files         150      150               
  Lines       49027    49026        -1     
===========================================
+ Hits        20510    44951    +24441     
+ Misses      28517     4075    -24442
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `90.06% <ø> (?)` | |
| #single | `41.83% <ø> (-0.01%)` | :arrow_down: |

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/19949?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/core/indexes/range.py](https://codecov.io/gh/pandas-dev/pandas/pull/19949/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvaW5kZXhlcy9yYW5nZS5weQ==) | `95.7% <ø> (+42.63%)` | :arrow_up: |
| [pandas/core/indexes/numeric.py](https://codecov.io/gh/pandas-dev/pandas/pull/19949/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvaW5kZXhlcy9udW1lcmljLnB5) | `97.24% <ø> (+33.94%)` | :arrow_up: |
| [pandas/core/computation/pytables.py](https://codecov.io/gh/pandas-dev/pandas/pull/19949/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvY29tcHV0YXRpb24vcHl0YWJsZXMucHk=) | `92.37% <0%> (+0.3%)` | :arrow_up: |
| [pandas/io/pytables.py](https://codecov.io/gh/pandas-dev/pandas/pull/19949/diff?src=pr&el=tree#diff-cGFuZGFzL2lvL3B5dGFibGVzLnB5) | `92.45% <0%> (+0.97%)` | :arrow_up: |
| [pandas/util/\_test\_decorators.py](https://codecov.io/gh/pandas-dev/pandas/pull/19949/diff?src=pr&el=tree#diff-cGFuZGFzL3V0aWwvX3Rlc3RfZGVjb3JhdG9ycy5weQ==) | `92.42% <0%> (+4.54%)` | :arrow_up: |
| [pandas/io/formats/console.py](https://codecov.io/gh/pandas-dev/pandas/pull/19949/diff?src=pr&el=tree#diff-cGFuZGFzL2lvL2Zvcm1hdHMvY29uc29sZS5weQ==) | `69.69% <0%> (+6.06%)` | :arrow_up: |
| [pandas/compat/\_\_init\_\_.py](https://codecov.io/gh/pandas-dev/pandas/pull/19949/diff?src=pr&el=tree#diff-cGFuZGFzL2NvbXBhdC9fX2luaXRfXy5weQ==) | `57.62% <0%> (+8.47%)` | :arrow_up: |
| [pandas/core/config\_init.py](https://codecov.io/gh/pandas-dev/pandas/pull/19949/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvY29uZmlnX2luaXQucHk=) | `100% <0%> (+10.31%)` | :arrow_up: |
| [pandas/core/reshape/util.py](https://codecov.io/gh/pandas-dev/pandas/pull/19949/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvcmVzaGFwZS91dGlsLnB5) | `90.32% <0%> (+12.9%)` | :arrow_up: |
| [pandas/core/computation/common.py](https://codecov.io/gh/pandas-dev/pandas/pull/19949/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvY29tcHV0YXRpb24vY29tbW9uLnB5) | `85.71% <0%> (+14.28%)` | :arrow_up: |
| ... and [113 more](https://codecov.io/gh/pandas-dev/pandas/pull/19949/diff?src=pr&el=tree-more) | |

------

[Continue to review full report at Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/19949?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/19949?src=pr&el=footer). Last update [c8859b5...ce27711](https://codecov.io/gh/pandas-dev/pandas/pull/19949?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).

I think since you're using an official sphinx event to processes the docstring, it's fine. Much less of a hack than what we've done in the past :)
Travis log file looks good now!