Skip to content

experiment with using flox.groupby_scan #2197

@dcherian

Description

@dcherian

Addressing a Problem?

A while ago I implemented "scans" (think generalization of cumsum, also allows ffill, bfill; so anything with state) in flox.

https://github.com/xarray-contrib/flox/blob/b20545b3bd6856529107496b3793134ada57f2c1/flox/core.py#L2964

This may be useful for any "run length" indicators, though I haven't actually tried it. There's no Xarray API yet, but could easily be added. I'd be interested in collaborating with anyone who's interested in trying it out (though after Scipy, July 16)

Potential Solution

No response

Additional context

No response

Contribution

  • I would be willing/able to open a Pull Request to contribute this feature.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    aspirationalOne day, we should definitely do thisenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions