Skip to content

DOC: provide links to API documentation where possible #3705

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
cpcloud opened this issue May 28, 2013 · 6 comments
Closed

DOC: provide links to API documentation where possible #3705

cpcloud opened this issue May 28, 2013 · 6 comments
Labels

Comments

@cpcloud
Copy link
Member

cpcloud commented May 28, 2013

Probably good as a first PR. I'm not saying we need links to DataFrame every time it's mentioned, but the io docs could use some TLC in this direction.

@cpcloud
Copy link
Member Author

cpcloud commented Jun 5, 2013

For posterity, if anyone is ever interested in working on this you can link to, e.g., DataFrame by doing:

:class:`~pandas.core.frame.DataFrame`

For functions you can do e.g.

:func:`~pandas.io.html.read_html`

The :func: syntax works for methods as well but if you want to be precise about it you can do, e.g.,

:meth:`~pandas.core.frame.DataFrame.replace`

For general object and other references, see the Sphinx documentation on Python "roles".

@ghost
Copy link

ghost commented Jan 24, 2014

cc @jorisvandenbossche

@jorisvandenbossche
Copy link
Member

jorisvandenbossche commented Jan 24, 2014

@y-p This is just an on-going issue to gradually make more links in our docs to the docstring pages. I think we should:

  • for newly written docs try to think about this at once (eg the new sql docs do this very good)
  • leave this issue open as 'good as first PR'?

And as reference for later, you can reference as they are available in the user API, so you can do:

  • :class:`~pandas.DataFrame` instead of :class:`~pandas.core.frame.DataFrame`
  • :func:`~pandas.read_html` instead of :func:`~pandas.io.html.read_html`
  • :meth:`~pandas.DataFrame.replace` instead of :meth:`~pandas.core.frame.DataFrame.replace`

The ~ makes it display as DataFrame() instead of pandas.DataFrame()

@jreback
Copy link
Contributor

jreback commented Jan 24, 2014

@jorisvandenbossche this is in the contributing readme yes?

@ghost
Copy link

ghost commented Jan 24, 2014

Ok. though "good as first PR" has become somewhat synonymous with "I can't be bothered",
not the original intent of it.

@wesm
Copy link
Member

wesm commented Sep 29, 2016

Let's close this in favor of more specific asks

@wesm wesm closed this as completed Sep 29, 2016
@jorisvandenbossche jorisvandenbossche modified the milestones: Next Major Release, No action Sep 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants