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
Currently the type shown in Spyder is Array of str32 and Array of str160, it might be clearer if Array of <U1 and Array of <U5 is used, more consistent to the dtype attribute:
There is slightly inconsistent behaviour when indexing into a numeric array for example of np.int8 and replacing it with a value that is out of the range of the datatype of the array. I think one major change with numpy 2 was to avoid silent truncation for numeric data outlined in NumPy 2.0 Migration Guide and NEP50.
However it seems that NEP50 isn't implemented for the text data and a silent truncation is still carried out:
The array
is displayed as ndarray object of numpy module in the variable explorer (red) instead of listing the values, as would happen for an array of numbers.
Originally posted by @PhilipYip1988 in #22466 (comment)
The text was updated successfully, but these errors were encountered: