We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Similar to #26147 and #26317 it looks like np.where should be doing a copy instead of a view for StringDType.
np.where
StringDType
import numpy as np a = np.array(["a"*25, "b", np.nan], dtype=np.dtypes.StringDType(na_object=np.nan)) print(repr(np.where(a, a, a)))
# prints: array(['', 'b', nan], dtype=StringDType(na_object=nan)) # should print: array(['aaaaaaaaaaaaaaaaaaaaaaaaa', 'b', nan], dtype=StringDType(na_object=nan))
Current main branch, python 3.12.2.
main
No response
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Describe the issue:
Similar to #26147 and #26317 it looks like
np.where
should be doing a copy instead of a view forStringDType
.Reproduce the code example:
Result:
Python and NumPy Versions:
Current
main
branch, python 3.12.2.Runtime Environment:
No response
Context for the issue:
No response
The text was updated successfully, but these errors were encountered: