Skip to content

Add coarsen.construct #5454

Closed
Closed
@dcherian

Description

@dcherian

Like Rolling.construct this would create a new reshaped array with extra dimensions that would usually be reduced over. It would be a light wrapper over Variable._coarsen_reshape

It make #5119, and #2419 really easy without having to go through a MultiIndex+unstack operation which is somewhat arcane.

ds.coarsen(time=12).construct(dim="year").rename({"time": "month"})

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