We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What's the problem this feature will solve?
Currently if the users would like to find the min/max cell based on certain criteria, they'll have to it manually like this:
min(raster_layer.get_neighboring_cells(pos, ...), key=lambda cell: cell.attribute)
Describe the solution you'd like
To have a more powerful and fluent API for cell aggregation similar to Pandas, e.g.,
raster_layer.get_neighboring_cells(pos, ...).by("attribute").min() raster_layer.get_neighboring_cells(pos, ...).by(lambda cell: cell.attribute).min() raster_layer.get_neighboring_cells(pos, ...).by(["attribute_0", "attribute_1"]).agg(["min", "max"]) raster_layer.get_neighboring_cells(pos, ...).by("attribute").agg(lambda cell_list: random.choice(cell_list))
Additional context
See comments from #75 (comment).
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What's the problem this feature will solve?
Currently if the users would like to find the min/max cell based on certain criteria, they'll have to it manually like this:
Describe the solution you'd like
To have a more powerful and fluent API for cell aggregation similar to Pandas, e.g.,
Additional context
See comments from #75 (comment).
The text was updated successfully, but these errors were encountered: