Skip to content

optimize groupby for resample #233

Closed
@dcherian

Description

@dcherian

I keep seeing this pattern at NCAR

MOC.groupby('time.year').mean('time').rename({'year':'time'})

This is really a MOC.resample(time="A").mean() but with a more desirable time coordinate.

So there's some value in detecting group patterns

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