Skip to content

DOC: add axes attributes to API docs #11407

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jreback opened this issue Oct 22, 2015 · 7 comments
Closed

DOC: add axes attributes to API docs #11407

jreback opened this issue Oct 22, 2015 · 7 comments

Comments

@jreback
Copy link
Contributor

jreback commented Oct 22, 2015

from SO

People just jump to the API w/o actually reading ANY Introduction where this is convered in the first sentence

so API docs should be more complete

@jorisvandenbossche
Copy link
Member

Do you know why index and columns are not listed there and other attributes such as values is? As these are generated automatically based on the sphinx/numpydoc inspection of the DataFrame class

@jorisvandenbossche
Copy link
Member

inspect.getmembers(pd.DataFrame) does not include it (it includes it in the __dict__ item, but not top-level). So the problem with how the index and columns attributes are defined in the DataFrame/NDFrame class

@kawochen
Copy link
Contributor

In [1]: import pandas

In [2]: import inspect

In [3]: 'index' in [x[0] for x in inspect.getmembers(pandas.DataFrame)]
Out[3]: True

In [4]: 'columns' in [x[0] for x in inspect.getmembers(pandas.DataFrame)]
Out[4]: True

PY3 though.

@jreback jreback modified the milestones: Next Major Release, 0.17.1 Nov 14, 2015
@pdpark
Copy link

pdpark commented Dec 21, 2017

Looking for an easy documentation fix for my first contribution to an open source project and I came across this open Issue. However, after forking the repo and compiling the docs locally, this seems to be fixed - I see "columns" and "index" in the Attributes section now - albeit w/o any description.

It looks like it's fixed in the latest build: https://pandas-docs.github.io/pandas-docs-travis/generated/pandas.DataFrame.html#pandas.DataFrame

@TomAugspurger
Copy link
Contributor

Ah, #18196 fixed the error but didn’t add a docstring.

@mroeschke
Copy link
Member

It appears index and axis appear in the API reference now with (brief) docstrings:

https://pandas.pydata.org/pandas-docs/stable/reference/series.html
https://pandas.pydata.org/pandas-docs/stable/reference/frame.html

I think this issue can be sufficiently closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants