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
This seems to occur when data passed as str dtype because of numpy spec. I'll fix this if this is unintended.
Also, found different error.
w = s.where(s>1, ['A', 'B', 'C', 'D', 'E'])
# ValueError: invalid literal for long() with base 10: 'A'
w = s.where(s>1, np.array(['A', 'B', 'C', 'D', 'E']))
# ValueError: invalid literal for long() with base 10: 'A'
Replacing some numeric values using
where
affects to dtype unrelated to the condition.The result looks OK, but internally coerced to all
str
.The text was updated successfully, but these errors were encountered: