Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Clarify/simplify data retrieval for Tileset/Mozaic objects

Open
#2 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
30/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
pandas, python
Domain
data

Research direction

Start by tracing the Mozaic, TileSet, and Tile objects and the existing to_df() path shown for country_mozaics_d[FORECAST_START_DATE]['DAU']['IN']. Clarify the desired default access pattern and DataFrame columns before changing model generation or retrieval. Done means the supported top-level data view and its default schema are agreed and available.

Written by the indexing model from the issue text.

Description

When running a model across multiple countries and populations, the current data structure makes it somewhat difficult to access the actual data outputs directly. There are a number of different objects that are generated and attached to the Mozaic, TileSet, and/or Tile objects, sometimes in different formats (such as unlabelled matrices with simulation run outputs).

What would be especially helpful is to have a more general top-level way of viewing all model data in a top-level pandas DataFrame object. There is already an option to get this for a specific sub-model --- if I'm understanding the nomenclature correctly, this would be a single country Mozaic? E.g.:

my_df = country_mozaics_d[FORECAST_START_DATE]['DAU']['IN'].to_df()

I think what would help would be to have one default way of getting this across these objects. Maybe this means changing the default usage for generating models, or maybe it just means incorporating FORECAST_START_DATE, 'DAU', and 'IN' as columns within one overarching DataFrame.

Exactly which columns should be included in this DataFrame by default is worth discussing -- especially if there is concern that it may be overwhelming or confusing to include too many.

Dominant language
Python
Stars
3
Forks
3
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

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.

More from mozilla/mozaic-forecasting

All issues in mozilla/mozaic-forecasting

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.