Thanks to visit codestin.com
Credit goes to github.com

Skip to content

DOC: Add missing documentation for top-level functions #10106

Closed
@eric-wieser

Description

@eric-wieser

Exposed are:

Steps to document many of these:

  1. Find the long-form of the name, such as np.core.multiarray.uint16
  2. Add the documentation to numpy/add_newdocs.py in the appropriate place
  3. Find an appropriate place to link to the function within :/doc/source/reference/routines.*.rst - look at existing files to see how
Script to generate the above
from collections.abc import Callable
ndoc = set(
    v
    for k, v in vars(np).items()
    if isinstance(v, Callable) and v.__doc__ is None
)
ndoc = sorted(
    ndoc,
    key=lambda v: (isinstance(v, type) and issubclass(v, np .generic), v.__qualname__)
)
print('\n'.join(
   '* [ ] `{!r}` ({})'.format(
        v,
       ', '.join('`np.{}`'.format(k) for k, v2 in vars(np).items() if v2 is v)
    )
    for v in ndoc
))

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions