-
-
Notifications
You must be signed in to change notification settings - Fork 11k
DOC: Add examples to np.char
#26642
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DOC: Add examples to np.char
#26642
Conversation
[skip actions][skip azp][skip cirrus]
[skip actions][skip azp][skip cirrus]
[skip actions][skip azp][skip cirrus]
[skip actions][skip azp][skip cirrus]
[skip actions][skip azp][skip cirrus]
[skip actions][skip azp][skip cirrus]
[skip actions][skip azp][skip cirrus]
[skip actions][skip azp][skip cirrus]
Our plan is to eventually get rid of |
This PR fills all the missing examples for
The ones below are added only to to
The name |
Co-authored-by: Xiao Yuan <yuanx749@gmail.com>
Rebased after other merges added examples. This PR now contains:
|
np.char
np.char
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll go ahead and resolve the merge conflict.
@@ -1373,6 +1373,14 @@ def _splitlines(a, keepends=None): | |||
-------- | |||
str.splitlines | |||
|
|||
Examples |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unless there's some magic that uses the docstring of the private function in the public function, not sure if this is needed here?
@ngoldbaum I'm not familiar with the plan for |
I don't think these hurt. Let's merge. |
Adds examples to
np.char
module. Part of #21351.Examples added:
array
- defchararray moduleisalpha
- ufunc_docstrings moduleisspace
- ufunc_docstrings modulemod
- strings modulerfind
- strings modulesplitlines
- strings module but in char namespacestartswith
- strings module - example similar toendswith