Olaroti commited on
Commit
e3f1488
·
verified ·
1 Parent(s): 83885f6

Standardize Electric Sheep Africa dataset card

Browse files
Files changed (1) hide show
  1. README.md +131 -66
README.md CHANGED
@@ -5,83 +5,107 @@ language:
5
  task_categories:
6
  - tabular-classification
7
  - tabular-regression
8
- multilinguality: monolingual
9
  size_categories:
10
  - n<1K
11
  tags:
12
- - tabular
13
- - csv
14
- - africa
15
- - mozambique
16
- - official-statistics
17
- - open-data
 
 
 
 
 
 
 
 
 
18
  configs:
19
  - config_name: default
20
  data_files:
21
  - split: train
22
  path: data/train-00000-of-00001.parquet
23
- pretty_name: "Inquérito Biológico e Comportamental em Reclusos e Agentes em 22 Estabelecimentos Penitenciários em Moçambique, 2023-Segunda Ronda | Africa (Mozambique official open data)"
24
  ---
25
 
26
- # Inquérito Biológico e Comportamental em Reclusos e Agentes em 22 Estabelecimentos Penitenciários em Moçambique, 2023-Segunda Ronda | Africa (Mozambique official open data)
27
 
28
- 273 rows - 1 Africa country - 2023-2024 - Repackaged by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica)
29
 
30
  ![rows](https://img.shields.io/badge/rows-273-blue)
31
  ![countries](https://img.shields.io/badge/countries-1-green)
32
- ![years](https://img.shields.io/badge/years-2023-2024-orange)
33
  ![indicators](https://img.shields.io/badge/indicators-0-purple)
34
  ![license](https://img.shields.io/badge/license-other-lightgrey)
35
 
36
  ## TL;DR
37
 
38
- This dataset packages one official `CSV` resource from **Mozambique** as
39
- ML-ready Parquet. The source file is the provenance boundary; all usable
40
- indicators or tabular columns from the resource stay together in this repo.
41
 
42
- ## About the source
43
 
44
- - **Source:** [Inquérito Biológico e Comportamental em Reclusos e Agentes em 22 Estabelecimentos Penitenciários em Moçambique, 2023-Segunda Ronda](https://mozdata.ine.gov.mz/index.php/catalog/128/related-materials)
45
- - **Publisher:** Instituto Nacional de Saúde
46
- - **Resource:** [BASE CARGA_VIRAL](https://mozdata.ine.gov.mz/index.php/catalog/128/download/1160)
47
- - **Format:** `CSV`
48
- - **License:** [Other open license]()
49
- - **Packaging mode:** `tabular_resource`
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
 
51
- ## Geographic coverage
52
 
53
- 1 Africa country:
54
 
55
- | Country | Rows | First year | Last year | Name |
56
- |---------|-----:|-----------:|----------:|------|
57
  | `MOZ` | 273 | 2023 | 2024 | `Mozambique` |
58
 
59
- ## Indicators or Resource Contents
60
 
61
- - This source file is packaged as a normalized tabular resource.
62
 
63
  ## Schema
64
 
65
  | Column | Type | Description | Example |
66
  |--------|------|-------------|---------|
67
- | `source_record_id` | `string` | Stable row identifier for tabular resources. | `moz-ine-nada-128-1160:0` |
68
- | `country_iso3` | `category` | ISO3 country code. | `MOZ` |
69
- | `country_name` | `category` | Country name. | `Mozambique` |
70
- | `n_codparticipante` | `string` | Source column. | `PRI0102M008` |
71
- | `cons_hiv` | `string` | Source column. | `Sim` |
72
- | `cv_resul` | `string` | Source column. | `detectavel` |
73
- | `cv_absoluto` | `float64` | Source column. | `400.0` |
74
- | `source_period_start_year` | `Int64` | First year inferred from source resource metadata. | `2023` |
75
- | `source_period_end_year` | `Int64` | Last year inferred from source resource metadata. | `2024` |
76
- | `source_period_label` | `category` | Human-readable period inferred from source resource metadata. | `2023-2024` |
77
- | `source_provider` | `category` | Publishing organization. | `Instituto Nacional de Saúde` |
78
- | `source_dataset` | `category` | Source package title. | `Inquérito Biológico e Comportamental em Reclusos e Agentes em 22 Estabel` |
79
- | `source_resource` | `category` | Source resource title. | `BASE CARGA_VIRAL` |
80
- | `source_package_id` | `category` | CKAN package UUID. | `MOZ.INE.IBCRAEP.2024.vII` |
81
- | `source_resource_id` | `category` | CKAN resource UUID. | `moz-ine-nada-128-1160` |
82
- | `source_url` | `category` | Original source resource URL. | `https://mozdata.ine.gov.mz/index.php/catalog/128/download/1160` |
83
- | `license_id` | `category` | Source license identifier. | `other-open` |
84
- | `retrieved_at` | `category` | UTC retrieval timestamp. | `2026-08-07T20:33:37Z` |
85
 
86
  ## Usage
87
 
@@ -93,51 +117,92 @@ df = ds["train"].to_pandas()
93
  print(df.head())
94
  ```
95
 
96
- ### Filter to one country
97
 
98
  ```python
99
- sample_country = df[df["country_iso3"] == "MOZ"]
 
100
  ```
101
 
102
- ### Work with indicators
103
 
104
  ```python
105
- if "indicator_id" in df.columns:
106
- print(df["indicator_id"].value_counts().head())
107
- sample = df.sort_values([c for c in ["indicator_id", "year"] if c in df.columns])
108
  ```
109
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
110
  ## Citation
111
 
112
  ```bibtex
113
  @misc{electric_sheep_africa_africa_mozambique_inquerito_biologico_e_comportamental_em_reclusos_e_agentes_28a_2024,
114
- title = {Inquérito Biológico e Comportamental em Reclusos e Agentes em 22 Estabelecimentos Penitenciários em Moçambique, 2023-Segunda Ronda | Africa (Mozambique official open data)},
115
  author = {Instituto Nacional de Saúde},
116
  year = {2024},
117
  url = {https://mozdata.ine.gov.mz/index.php/catalog/128/related-materials},
118
- publisher = {HuggingFace Datasets, repackaged by Electric Sheep Africa},
119
  howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-mozambique-inquerito-biologico-e-comportamental-em-reclusos-e-agentes-28a1baff}}
120
  }
121
  ```
122
 
123
  ## License
124
 
125
- Released under [Other open license]().
126
-
127
- Original data (c) Instituto Nacional de Saúde. When using this dataset, please cite both the
128
- original source above and the Electric Sheep Africa repackaging.
129
 
130
- ## About Electric Sheep
 
 
131
 
132
- Electric Sheep Africa is part of the Electric Sheep mission: a unified,
133
- ML-ready data layer for Africa on Hugging Face. We pull data from authoritative
134
- open sources, normalize the schemas, package as Parquet, and publish with
135
- consistent dataset cards so researchers and developers can use `load_dataset()`
136
- to start working in seconds.
137
 
138
- Browse the full collection: [huggingface.co/electricsheepafrica](https://huggingface.co/electricsheepafrica)
139
 
140
  ---
141
 
142
- Provenance: ingested 2026-08-07 via the Electric Sheep pipeline. Source URL:
143
- https://mozdata.ine.gov.mz/index.php/catalog/128/download/1160
 
5
  task_categories:
6
  - tabular-classification
7
  - tabular-regression
8
+ multilinguality: multilingual
9
  size_categories:
10
  - n<1K
11
  tags:
12
+ - "tabular"
13
+ - "africa"
14
+ - "open-data"
15
+ - "official-statistics"
16
+ - "mozambique"
17
+ - "instituto-nacional-de-saude"
18
+ - "transport"
19
+ - "demograficos"
20
+ - "base-carga-viral"
21
+ - "base-carga-viral-csv"
22
+ - "2022"
23
+ - "survey"
24
+ - "nao-e-aplicavel"
25
+ - "document"
26
+ - "questionnaire-doc"
27
  configs:
28
  - config_name: default
29
  data_files:
30
  - split: train
31
  path: data/train-00000-of-00001.parquet
32
+ pretty_name: "Inquerito Biologico E Comportamental Em Reclusos E Agentes | Africa (Instituto Nacional de Saúde)"
33
  ---
34
 
35
+ # Inquerito Biologico E Comportamental Em Reclusos E Agentes | Africa (Instituto Nacional de Saúde)
36
 
37
+ **273 rows** - **1 Africa country/area** - **2023-2024** - **source table** - *Engineered by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica)*
38
 
39
  ![rows](https://img.shields.io/badge/rows-273-blue)
40
  ![countries](https://img.shields.io/badge/countries-1-green)
41
+ ![period](https://img.shields.io/badge/period-2023--2024-orange)
42
  ![indicators](https://img.shields.io/badge/indicators-0-purple)
43
  ![license](https://img.shields.io/badge/license-other-lightgrey)
44
 
45
  ## TL;DR
46
 
47
+ This dataset contains **273 rows** from **Instituto Nacional de Saúde**, covering **Inquerito Biologico E Comportamental Em Reclusos E Agentes**. It is published as ML-ready Parquet with consistent Hugging Face metadata, source provenance, and analysis-friendly loading examples.
 
 
48
 
49
+ ## What This Dataset Measures
50
 
51
+ Transport datasets help analysts examine mobility, infrastructure, passenger movement, logistics, and access to services.
52
+
53
+ Source-provided context: Document, Questionnaire [doc/qst]
54
+
55
+ ## How To Read This Dataset
56
+
57
+ - **One row means:** one source record from the original tabular resource, with Electric Sheep Africa provenance columns added where available.
58
+ - **Primary geography column:** `country_iso3`.
59
+ - **Best time column:** `not detected`.
60
+ - **Time coverage basis:** source metadata.
61
+ - **Recommended join keys:** `country_iso3` where available plus source-specific keys.
62
+
63
+ ## Coverage
64
+
65
+ | Dimension | Value |
66
+ |---|---:|
67
+ | Rows | 273 |
68
+ | Countries/areas | 1 |
69
+ | First period | 2023 |
70
+ | Last period | 2024 |
71
+ | Indicators | 0 |
72
+ | Columns | 18 |
73
+ | Source format | CSV |
74
 
75
+ ## Geographic Coverage
76
 
77
+ Top areas shown below, sorted by row count when available:
78
 
79
+ | Area | Rows | First year | Last year | Name |
80
+ |------|-----:|-----------:|----------:|------|
81
  | `MOZ` | 273 | 2023 | 2024 | `Mozambique` |
82
 
83
+ ## Indicators, Variables, Or Resource Contents
84
 
85
+ - This repo preserves one source tabular resource with its usable columns kept together.
86
 
87
  ## Schema
88
 
89
  | Column | Type | Description | Example |
90
  |--------|------|-------------|---------|
91
+ | `source_record_id` | `string` | Stable row identifier assigned during Electric Sheep Africa engineering. | `moz-ine-nada-128-1160:0` |
92
+ | `country_iso3` | `dictionary<values=string, indices=int8, ordered=0>` | ISO3 country or area code. | `MOZ` |
93
+ | `country_name` | `dictionary<values=string, indices=int8, ordered=0>` | Country or area name. | `Mozambique` |
94
+ | `n_codparticipante` | `string` | Source column from the original resource. | `PRI0102M008` |
95
+ | `cons_hiv` | `string` | Source column from the original resource. | `Sim` |
96
+ | `cv_resul` | `string` | Source column from the original resource. | `detectavel` |
97
+ | `cv_absoluto` | `double` | Source column from the original resource. | `400.0` |
98
+ | `source_period_start_year` | `int64` | Start year inferred from source metadata. | `2023` |
99
+ | `source_period_end_year` | `int64` | End year inferred from source metadata. | `2024` |
100
+ | `source_period_label` | `dictionary<values=string, indices=int8, ordered=0>` | Source column from the original resource. | `2023-2024` |
101
+ | `source_provider` | `dictionary<values=string, indices=int8, ordered=0>` | Publishing organization. | `Instituto Nacional de Saúde` |
102
+ | `source_dataset` | `dictionary<values=string, indices=int8, ordered=0>` | Source dataset or package title. | `Inquérito Biológico e Comportamental em Reclusos e Agentes em 22 Esta...` |
103
+ | `source_resource` | `dictionary<values=string, indices=int8, ordered=0>` | Source resource title, table name, or file name. | `BASE CARGA_VIRAL` |
104
+ | `source_package_id` | `dictionary<values=string, indices=int8, ordered=0>` | Source package identifier. | `MOZ.INE.IBCRAEP.2024.vII` |
105
+ | `source_resource_id` | `dictionary<values=string, indices=int8, ordered=0>` | Source resource identifier. | `moz-ine-nada-128-1160` |
106
+ | `source_url` | `dictionary<values=string, indices=int8, ordered=0>` | Original source URL or download URL. | `https://mozdata.ine.gov.mz/index.php/catalog/128/download/1160` |
107
+ | `license_id` | `dictionary<values=string, indices=int8, ordered=0>` | Source license identifier. | `other-open` |
108
+ | `retrieved_at` | `dictionary<values=string, indices=int8, ordered=0>` | UTC source retrieval timestamp from the Electric Sheep Africa pipeline. | `2026-08-07T20:33:37Z` |
109
 
110
  ## Usage
111
 
 
117
  print(df.head())
118
  ```
119
 
120
+ ### Inspect Columns
121
 
122
  ```python
123
+ print(df.info())
124
+ print(df.head())
125
  ```
126
 
127
+ ### Filter By Geography
128
 
129
  ```python
130
+ if "country_iso3" in df.columns:
131
+ sample = df[df["country_iso3"] == "MOZ"]
 
132
  ```
133
 
134
+ ### Time-Series Pattern
135
+
136
+ ```python
137
+ if "value" in df.columns and "year" in df.columns:
138
+ trend = df.sort_values("year")
139
+ ```
140
+
141
+ ### Pivot For Analysis
142
+
143
+ ```python
144
+ if {"indicator_id", "year", "value"}.issubset(df.columns):
145
+ matrix = df.pivot_table(index="year", columns="indicator_id", values="value")
146
+ print(matrix.tail())
147
+ ```
148
+
149
+ ## Data Quality Notes
150
+
151
+ - No canonical year/date column was detected in the packaged table; use source metadata and domain context for temporal interpretation.
152
+ - Missing values are preserved rather than silently imputed.
153
+ - Column names are standardized for machine use; source meanings are preserved where known.
154
+ - Always confirm source methodology, units, and collection definitions before policy, production, or redistribution-sensitive use.
155
+
156
+ ## Source And Provenance
157
+
158
+ - **Source:** [Instituto Nacional de Saúde](https://mozdata.ine.gov.mz/index.php/catalog/128/related-materials)
159
+ - **Publisher:** Instituto Nacional de Saúde
160
+ - **Portal:** [https://mozdata.ine.gov.mz](https://mozdata.ine.gov.mz)
161
+ - **Resource:** [BASE CARGA_VIRAL](https://mozdata.ine.gov.mz/index.php/catalog/128/download/1160)
162
+ - **License:** other-open
163
+ - **Retrieved/generated:** `2026-08-07T20:51:44Z`
164
+ - **Hugging Face repo:** [electricsheepafrica/africa-mozambique-inquerito-biologico-e-comportamental-em-reclusos-e-agentes-28a1baff](https://huggingface.co/datasets/electricsheepafrica/africa-mozambique-inquerito-biologico-e-comportamental-em-reclusos-e-agentes-28a1baff)
165
+
166
+ ## Transformations Applied
167
+
168
+ - Converted the source table to Parquet for efficient analytics and ML workflows.
169
+ - Added or preserved source provenance columns where available.
170
+ - Standardized README metadata, dataset loading configuration, schema documentation, and citation format.
171
+ - Preserved source-reported values without analytical imputation.
172
+
173
+ ## Suggested Analyses
174
+
175
+ - Track mobility over time
176
+ - Compare routes or geographies
177
+ - Join with economic and population data
178
+ - Check missingness before modeling
179
+ - Use `country_iso3` as the safest geography join key when present
180
+
181
  ## Citation
182
 
183
  ```bibtex
184
  @misc{electric_sheep_africa_africa_mozambique_inquerito_biologico_e_comportamental_em_reclusos_e_agentes_28a_2024,
185
+ title = {Inquerito Biologico E Comportamental Em Reclusos E Agentes | Africa (Instituto Nacional de Saúde)},
186
  author = {Instituto Nacional de Saúde},
187
  year = {2024},
188
  url = {https://mozdata.ine.gov.mz/index.php/catalog/128/related-materials},
189
+ publisher = {Hugging Face Datasets, engineered by Electric Sheep Africa},
190
  howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-mozambique-inquerito-biologico-e-comportamental-em-reclusos-e-agentes-28a1baff}}
191
  }
192
  ```
193
 
194
  ## License
195
 
196
+ Released under other-open.
 
 
 
197
 
198
+ Original data is published by Instituto Nacional de Saúde. Electric Sheep Africa
199
+ engineering standardizes the data for discovery, loading, and analysis on
200
+ Hugging Face. Cite both the original source and this ML-ready dataset when used.
201
 
202
+ ## About Electric Sheep Africa
 
 
 
 
203
 
204
+ Electric Sheep Africa publishes ML-ready African public datasets on Hugging Face.
205
 
206
  ---
207
 
208
+ Provenance: README standardized 2026-08-11 by the Electric Sheep Africa README system. Source URL: https://mozdata.ine.gov.mz/index.php/catalog/128/related-materials