getodk / getodk/pyodk

Add example of filtering a repeat table

Open
#57 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
39
Forks
26
Avg merge
22h 46m
Merged PRs (30d)
1

Description

Recommendation from a user:

```
repeats = client.submissions.get_table(form_id='simple_repeat', table_name='Submissions.observation', filter="$root/Submissions/__system/reviewState ne 'rejected'")

obs_df = pd.json_normalize(data=repeats['value'], sep='/')

obs_df.head(3)
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Use the supplied pyodk and pandas snippet as the starting point, then locate the repository's documentation or examples area for the appropriate place to add it. Done means the filtering example is included with enough context to show how repeat-table results are normalized and inspected.

Written by the indexing model from the issue text.

Assessment

Tech stack
pandas, python
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.