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
I relatively often need to change an axis labels dtype. For example to convert labels to int64, I currently have to do:
>>>arr=ndtest("a=1..3")
>>>arr.a.dtypedtype('int32')
>>>arr.set_labels('a', arr.a.labels.astype(np.int64))
>>># this would be a tad shorter and makes sense IMO
... arr.set_labels('a', arr.a.astype(np.int64))
In an ideal world, arr.set_labels('a', np.int64) would work too (but I am unsure it is possible). It currently returns an object array for the axis labels:
I relatively often need to change an axis labels dtype. For example to convert labels to int64, I currently have to do:
In an ideal world,
arr.set_labels('a', np.int64)
would work too (but I am unsure it is possible). It currently returns an object array for the axis labels:The text was updated successfully, but these errors were encountered: