Skip to content

Business day resampling  #11123

Closed
Closed
@0x0L

Description

@0x0L

Hi everyone,

I just stumbled across this odd behaviour:

For a daily time series, I would expect resample('B', how='last') to be equivalent to selecting rows whose weekday is not Saturday or Sunday. However, resample groups together Fridays, Saturdays and Sundays and hence we get Sunday's value on Friday.

In the time series context, I guess most people would expect resample('B', ...) to bin Saturdays, Sundays and Mondays, so that no looking into the future occurs.

Am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions