get_missing_summary() helper method for OpenML datasets
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 48/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Ferma
- Stack tecnologico
- pandas, python
- Ambito
- data, machine-learning
Direzione di ricerca
Start at the OpenMLDataset class and inspect its existing get_data() entry point. Implement the requested missing-value summary using the dataset's returned dataframe, including total and per-column counts, then verify that the result matches the example structure and values for a dataset with missing data.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Hi OpenML team,
I’d like to propose a small usability enhancement to improve the dataset exploration workflow in openml-python.
Feature Request
helper method:
dataset.get_missing_summary()
- that returns a simple summary of missing values for the dataset.
Motivation
Many users load a dataset and immediately need to check:
- how many missing values exist in total
- which columns contain missing values
- basic column-level counts
Currently, users must manually compute this after calling dataset.get_data().
A built-in helper would reduce repetitive code and improve the dataset exploration experience, especially for new users.
Proposed Behavior
dataset = openml.datasets.get_dataset(dataset_id)
df, *_ = dataset.get_data()
dataset.get_missing_summary()
Example output:
{
"n_missing_total": 235,
"missing_per_column": {
"age": 10,
"income": 20,
"zipcode": 205
}
}
Implementation Idea
- Implement this as a method inside the
OpenMLDatasetclass. - Internally, the method would:
- Call
.get_data() - Compute missing summary using pandas (
df.isna().sum()) - Return a dictionary with overall and per-column counts
No changes needed to the core API; this is an isolated helper.
Benefits
Improves ease of use
- No backward compatibility impact
- Lightweight feature (easy to maintain)
- Helps users performing initial dataset checks
Happy to open a PR implementing this.
- Lingua principale
- Python
- Stelle
- 361
- Fork
- 296
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di openml/openml-python
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
openml/openml-python#1750 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
openml/openml-python#1749 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
openml/openml-python#1746 ·
-
Documentation Good First Issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
openml/openml-python#1708 · 7 commenti ·
-
Good First Issue module:Run testing
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
openml/openml-python#1646 · 7 commenti · 2 reazioni ·
Tutte le issue di openml/openml-python
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
stephrobert/dsoxlab#238 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
sublimehq/package_control#1780 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
nwg-piotr/nwg-displays#145 ·