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
so I looked into this and I think it's actually not a precision issue. It's because the function is not handling pd.NaT correctly. Please see #10072
Basically values are being forced into float and therefore pd.NaT becomes a non-null floating point number. median() therefore computes the median with that invalid value (that value happens to be a large negative number)
This code returns
while I would expect it to return the same as data.diff().mean()
Here is my setup
The text was updated successfully, but these errors were encountered: