Skip to content

API: extend resample to handle non-datetime numeric axes? #12828

@shoyer

Description

@shoyer

Numeric indexes are pretty common with scientific datasets and xarray. For such data, resampling to a new resolution is a pretty common operation.

Currently, resampling only works for dates. Any thoughts on making it work for all numeric axes? I think every argument in the signature would still make sense for numbers, except the rule would be expected to be a number, not a string.

I expect the implementation would be relatively straightforward, given that we don't need to handle the complexity of datetime frequencies.

xref pydata/xarray#818

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