Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
pd.unique doesn't actually return unique elements of SparseArray #19595
Code Sample, a copy-pastable example if possible
pd.unique(pd.SparseArray([0,1,2,3], fill_value=3)) #=> array([0,1,2]) pd.unique(pd.Series([0,1,2,3])) #=> array([0,1,2,3])
So I was digging into #5078 and stumbled across this problem.
I would expect the two to be the same.