Skip to content

DOC: overall improvement of docstrings #15580

Closed
@jorisvandenbossche

Description

@jorisvandenbossche

This is a general issue, to have as a starting point for (new) contributors to improve the docstrings (many docstrings have missing parts, and improvements on this front are always welcome).

In general, some attention points for docstrings in pandas. Each docstring should have:

  • Clear explanation of the function/method/attribute's purpose and what it does
  • Clear explanation of all parameter values
  • State the return value and type (xref API documentation should state return types #17114)
  • Some examples
  • follow more the numpydoc docstring standard (stylistic, see also, all arguments)

There are quite some docstrings that are still lacking on some of these points (in particular examples), and PRs to improve this are always welcome.

Approach: pick a function, check the docstring, and if needed make a PR with updates!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions