Open
Description
Based on the experience from the sprint, some known issues:
- args, kwargs (or kwds) issue (fixed in Add tests for docstring Validation Script + py27 compat #20061)
- no punctuation needed at end of explanation it last line is a
versionadded
(Consider directives when validating docstrings parameters #22405) - not working for some methods that are not imported in pandas like
pandas.core.resample.Resampler.backfill
- parameter description starting with bullet point (starting with capital letter error)
- parameter description containing bullet points at the end (missing ending period error) (Fix Validation Script to Not Error Out if Bullet Points Don't End with Period #25461)
- define standard for lists in parameters, enforce the format, and remove error that description needs to end with a period when there is a list
- handle newlines in docstring text (eg in parameter description)
- verify order of the sections (e.g.
See Also
beforeExamples
...) (DOC: Validate the order of the sections in the docstrings #23133) - verify that
pandas
andnumpy
are not being imported (DOC: Validate that the docstrings do not import pandas or numpy #23134) - verify that there is no blank line after the title sections
-
See Also
items do not start withpandas.
(DOC: Validate that items in See Also section do not start by pandas. #23136) - Using
string
,boolean
,integer
in the param descriptions (should bestr
,bool
,int
) (DOC: Validate parameter types in docstrings (e.g. str instead of string) #23165) -
Returns
section: first line with type only if a single return, desc starting with capital and ending with period... (DOC: Validate the Returns section in the docstrings #23138) - flake8 examples (Validate PEP-8 in docstring examples #23154)
-
axis
parameter using the same format{0 or 'index', 1 or 'columns'}
- add validations from decisions made in DOC: further clarifications to docstring guide #20309 (quotes to use...)
- decide whether to use
NaN
,nan
,NA
... and warn if the others are found - define standard on when to use backticks (single or double) and quotes, and verify common cases (like
None
,NaN
...) - Decription of items in
See Also
starts with capital letter and ends with period. (DOC: Validate description of See Also section in docstrings #23135)
cc @TomAugspurger @datapythonista @WillAyd others that you noticed?