8000 DOC: added example in char by story645 · Pull Request #22500 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

DOC: added example in char #22500

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

Merged
merged 2 commits into from
Oct 31, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update doc/source/reference/routines.char.rst
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
  • Loading branch information
story645 and rossbar authored Oct 31, 2022
commit 7c78538cbe3f98a52893d7b1e9d4753b5a52fc43
4 changes: 2 additions & 2 deletions doc/source/reference/routines.char.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ String operations
The `numpy.char` module provides a set of vectorized string
operations for arrays of type `numpy.str_` or `numpy.bytes_`. For example

>>> np.char.capitalize("numpy")
array('Numpy', dtype='<U5')
>>> np.char.capitalize(["python", "numpy"])
array(['Python', 'Numpy'], dtype='<U6')
>>> np.char.add(["num", "doc"], ["py", "umentation"])
array(['numpy', 'documentation'], dtype='<U13')

Expand Down
0