-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
DOC: add explanation of dtype to parameter values for np.append #26303
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 explanation of dtype to parameter values for np.append #26303
Conversation
|
2a7c235
to
1807e08
Compare
all right. tests have passed now. |
numpy/lib/_function_base_impl.py
Outdated
flattened before use. If dtype of values is different from the | ||
dtype of arr then their dtypes are compared to figure out the |
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.
flattened before use. If dtype of values is different from the | |
dtype of arr then their dtypes are compared to figure out the | |
flattened before use. If dtype of `values` is different from the | |
dtype of `arr` then their dtypes are compared to figure out the |
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.
Fixed now.
Please add |
…rus][skip actions]
Thank you for pointing. Done. |
@mattip Please let me know if any more changes need to be done. |
I think this does not actually address the issue that prompted the PR, which was that calling |
…[skip azp][skip cirrus][skip actions]
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.
A few comments, what do you think?
numpy/lib/_function_base_impl.py
Outdated
>>> c.dtype | ||
float64 | ||
|
||
Default dtype for empty lists is `float64` thus making the output of dtype |
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.
Move this comment to above the example
Default dtype for empty lists is `float64` thus making the output of dtype | |
Default dtype for empty ndarrays is `float64` thus making the output of dtype |
Thanks @tuhinsharma121 |
Improve doc strings to include explanation of
dtype
to parametervalues
fornp.append
closes #26291