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
astype(float) and astype(object) are working on an example Series[DecimalArray], but astype(str) is failing (while on the array itself, it works).
This is because we check for string types, and in that case use self.values (which is still an extension array) and not self.get_values(), and afterwards we call .ravel() on the result:
astype(float)
andastype(object)
are working on an example Series[DecimalArray], butastype(str)
is failing (while on the array itself, it works).This is because we check for string types, and in that case use
self.values
(which is still an extension array) and notself.get_values()
, and afterwards we call.ravel()
on the result:pandas/pandas/core/internals.py
Lines 649 to 664 in 4efb39f
Example:
The text was updated successfully, but these errors were encountered: