-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
DOC: adding examples to any
method of multi-dimensional array
#24010
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
Conversation
Removed previous PR examples.
any
method of multi-dimensional array
Thanks @seberg for changing the title. |
any
method of multi-dimensional arrayany
method of multi-dimensional array
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
Added examples of 2D(2x3) array.
Added another datatype boolean of 2D array to enhance the understanding of user about any method in different datatypes.
Lint problem fixed.
@rossbar changes are done. Thanks for help. |
@MohitKumar020291 it doesn't look like the docstring examples you have added have been simplified; in fact, they seem to have grown! In it's current state, I don't think the proposed additions are an improvement as they tend (IMO) to dilute the useful information. I'd be +1 on adding an example which demonstrates the use of |
@rossbar please look at these changes. |
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.
Example 2 LGTM
Resolved merge conflicts. Couldn't push to this branch, so I opened gh-25511, retaining the original commits, so this can be closed. |
This PR solves issue(#22266) of missing examples of
any
method infromnumeric.py
by adding examples. These examples have a 3D(3x2) array example, with; without axis, axis=0, axis=1 and axis=2.Other examples are about use of different datatypes:
0
and1
.