You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NumPy fixed-width string DTypes are null-padded, so there is no way to tell the difference between '\x00' and an empty string. This is a fundamental shortcoming of padding with trailing nulls like this.
If you use StringDType you can avoid this problem:
Uh oh!
There was an error while loading. Please reload this page.
Describe the issue:
'\x00'
is a nonempty string butnp.str_('\x00')
is an empty string. This leads to strange behavior for parsing string arrays. For example,Reproduce the code example:
Error message:
Python and NumPy Versions:
2.0.2
3.11.12 (main, Apr 9 2025, 08:55:54) [GCC 11.4.0]
Runtime Environment:
No response
Context for the issue:
No response
The text was updated successfully, but these errors were encountered: