DOC: Enforce Numpy Docstring Validation (Parent Issue) #58063

Pandas has a script for validating docstrings in code_checks.sh. Currently, some methods fail some of these checks.

pandas.api.extensions.ExtensionArray

https://github.com/pandas-dev/pandas/blob/c468028f5c2398c04d355cef7a8b6a3952620de2/ci/code_checks.sh#L621-L662

The task is:

  1. take 1-5 methods

  2. run: scripts/validate_docstrings.py --format=actions <method-name>

example command: scripts/validate_docstrings.py --format=actions pandas.Categorical.__array__ example output:

################################################################################
################################## Validation ##################################
################################################################################

2 Errors found for `pandas.Categorical.__array__`:
    ES01    No extended summary found
    SA01    See Also section not found
  1. check if validation docstrings passes for those methods, and if it’s necessary fix the docstrings according to whatever error is reported. Note: We've chosen to ignore ES01 errors, these are not required to be fixed.

  2. remove those methods from code_checks.sh if all errors are cleared and the docstring is correct, otherwise, remove the specific error that was fixed from the list of errors for that method.

  3. commit, push, open pull request

Please don't comment take as multiple people can work on this issue. You also don't need to ask for permission to work on this, just comment on which methods are you going to work : )

If you're new contributor, please check the contributing guide

thanks @datapythonista @jordan-d-murphy for the inspiration for this issue!

Comment From: tuhinsharma121

working on

-i "pandas.api.indexers.BaseIndexer PR01,SA01" \ 

Comment From: rgemawat2000

working on -i "pandas.api.types.is_unsigned_integer_dtype SA01" \

Comment From: zslsally

Working on -i "pandas.api.types.union_categoricals RT03,SA01" \

Comment From: tan-i-ham

Working on -i "pandas.api.types.is_string_dtype SA01" \

Comment From: rgemawat2000

working on -i "pandas.api.types.is_timedelta64_ns_dtype SA01" \, -i pandas.api.types.is_period_dtype SA01 and -i "pandas.api.types.is_numeric_dtype SA01" \

Comment From: tan-i-ham

working on pandas.api.types.is_bool_type

Comment From: abhinav-thimma

Working on

        -i "pandas.api.types.is_bool PR01,SA01" \
        -i "pandas.api.types.is_categorical_dtype SA01" \
        -i "pandas.api.types.is_complex PR01,SA01" \
        -i "pandas.api.types.is_complex_dtype SA01" \
        -i "pandas.api.types.is_datetime64_dtype SA01" \
        -i "pandas.api.types.is_datetime64_ns_dtype SA01" \
        -i "pandas.api.types.is_datetime64tz_dtype SA01" \

Comment From: saldanhad

Worked on

        -i "pandas.api.types.is_re PR07,SA01" \
        -i "pandas.api.types.is_named_tuple PR07,SA01" \
        -i "pandas.api.types.is_hashable PR01,RT03,SA01" \
        -i "pandas.api.types.is_file_like PR07,SA01" \
        -i "pandas.api.types.is_dict_like PR07,SA01" \
````

**Comment From: ensalada-de-pollo**

working on 

-i "pandas.api.types.pandas_dtype PR07,RT03,SA01" \


**Comment From: sooooooing**

work on

-i "pandas.api.types.is_re_compilable PR07,SA01" \ ```

Comment From: jbrockmendel

Looks like this is done, good job.