scverse / scverse/spatialdata

Test aggregation of vector data by vector data when `agg_func` is a `list` of `str`

Open
#561 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

method: aggregation 🔢 needs: triage priority: low
Dominant language
Python
Stars
394
Forks
95
Avg merge
4d 3h
Merged PRs (30d)
7

Description

Observed by @quentinblampey. Seems like zonal_stats() deals with the list case, but not pd.GroupBy.agg() (used in the vector by vector case).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the vector-by-vector path that uses pd.GroupBy.agg(), then compare its handling of agg_func as a list of str with the existing zonal_stats() behavior. Reproduce the issue with vector data and confirm that list-based aggregation works as intended, adding or updating the relevant test if one is found.

Written by the indexing model from the issue text.

Assessment

Tech stack
pandas, python
Domain
data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.