Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docstrings examples for string methods (#7669)
* Use more descriptive link texts * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fix link target name * Fix typos * Add example for DataArray.str.capitalize * Add example for DataArray.str.lower * Add docstring example for DataArray.str.swapcase * Add docstring example for DataArray.str.title * Add docstring example for DataArray.str.upper * Add docstring example for DataArray.str.casefold * Add docstring example for DataArray.str.isalnum * Add docstring example for DataArray.str.isalpha * Add docstring example for DataArray.str.isdecimal * Add docstring example for DataArray.str.isdigit * Add docstring example for DataArray.str.islower * Add docstring example for DataArray.str.isnumeric * Add docstring example for DataArray.str.isspace * Add docstring example of DataArray.str.istitle * Add docstring example for DataArray.str.isupper * Add a docstring example for DataArray.str.count * Add docstring example of DataArray.str.startswith * Add docstring example of DataArray.str.endswith * Use varied examples * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Escape \n and \t Solves the incosistent whitespace error * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fixes failing doctests * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Replace "Example" with "Examples" To follow the Numpy docstrings format. * Delete unnecessary import * Pass a regex to the count function * Pass an array of strings to the count function This example demonstrates how the pattern is broadcasted. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Add docstrings examples for DataArray.str.pad * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fix invalid escape sequence warning * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fix regex * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Add data array and filled value * Correct spelling mistake * Modify wording to make it easier to understand * Fix indent errors * Add whats-new, fix docs --------- Co-authored-by: remigathoni <marg.kahiga@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Deepak Cherian <dcherian@users.noreply.github.com>
- Loading branch information