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
data count
2001-01-01 111.0 1.0 # OK. The day has one non-NA value,
2001-01-01 NaN 1.0 # and min_period is satisfied
2001-01-02 222.0 2.0 # OK
2001-01-02 NaN 2.0 # OK
2001-01-03 NaN 1.0 # why is this 1.0? this date has no values in it.
2001-01-03 NaN 1.0 # again
2001-01-04 333.0 1.0 # OK
2001-01-04 NaN 1.0 # OK
2001-01-05 NaN 1.0 # why is this 1.0? this date has no values in it.
2001-01-05 NaN 1.0 # again
2001-01-06 NaN NaN # why is this NaN? min_periods is satisfied
2001-01-06 NaN NaN # and non-NA count should 0.
Generally looks like count may be returning 0 instead of NA for non-frequency data. Should return NA as you mention in these cases so would certainly take a PR if you see a way to make it work
Using current d39a6de
This may be two separate issues, I can't tell.
Case 1.
returns
I expected the first few results to be NA. perhaps related:
doesn't raise an exception.
Case 2.
for series with DatetimeIndex and rolling with an offset, the behavior is also strange, but different.
result
encountered in the course of #26959
The text was updated successfully, but these errors were encountered: