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
Series.diff appears to get things off with unsigned ints
s=pd.Series([1, 2, 3, 4, 5, 6], dtype='uint')
printsprints.shift(-1)
prints.diff(-1) # this result is wrong, some conversion issuesprints.map(int)
prints.map(int).diff(-1) # this result is right011223344556dtype: uint6402132435465NaNdtype: float6401.844674e+1911.844674e+1921.844674e+1931.844674e+1941.844674e+195NaNdtype: float64011223344556dtype: int640-11-12-13-14-15NaNdtype: float64
(this appears to have worked correctly in an older version of pandas 0.8 and doesn't in most recent 0.12)
The text was updated successfully, but these errors were encountered:
Series.diff appears to get things off with unsigned ints
(this appears to have worked correctly in an older version of pandas 0.8 and doesn't in most recent 0.12)
The text was updated successfully, but these errors were encountered: