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
jreback
changed the title
[BUG] reindex(columns=..) after get_dummies raises TypeError: values must be SparseArray
BUG: reindex(columns=..) after get_dummies raises TypeError: values must be SparseArray
Dec 23, 2017
I think I figured out the problem. Inside of get_dummies not all columns are cast as sparse but are marked as such causing some interesting issues down the line when trying to reindex.
Code Sample
Problem description
I'm doing a pandas upgrade from 0.19.x to 0.21.x for my project. The above code works under 0.19.x, but not under 0.21.x.
The text was updated successfully, but these errors were encountered: