Olaroti commited on
Commit
8487eba
·
verified ·
1 Parent(s): 5607473

Standardize Electric Sheep Africa dataset card

Browse files
Files changed (1) hide show
  1. README.md +124 -61
README.md CHANGED
@@ -5,75 +5,97 @@ 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
- - tunisia
16
- - official-statistics
17
- - open-data
18
- pretty_name: "Evolution du nombre de salles de sport en Tunisie entre 2002 et 2018 | Africa (Tunisia official open data)"
 
 
 
 
 
 
 
19
  ---
20
 
21
- # Evolution du nombre de salles de sport en Tunisie entre 2002 et 2018 | Africa (Tunisia official open data)
22
 
23
- 33 rows - 1 Africa country - 2002-2018 - Repackaged by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica)
24
 
25
  ![rows](https://img.shields.io/badge/rows-33-blue)
26
  ![countries](https://img.shields.io/badge/countries-1-green)
27
- ![years](https://img.shields.io/badge/years-2002-2018-orange)
28
  ![indicators](https://img.shields.io/badge/indicators-0-purple)
29
- ![license](https://img.shields.io/badge/license-cc-by-4.0-lightgrey)
30
 
31
  ## TL;DR
32
 
33
- This dataset packages one official `CSV` resource from **Tunisia** as
34
- ML-ready Parquet. The source file is the provenance boundary; all usable
35
- indicators or tabular columns from the resource stay together in this repo.
36
 
37
- ## About the source
38
 
39
- - **Source:** [Evolution du nombre de salles de sport en Tunisie entre 2002 et 2018](https://catalog.data.gov.tn/dataset/evolution-du-nombre-de-salles-de-sport-en-tunisie-entre-2002-et-2018)
40
- - **Publisher:** Commune de Tataouine
41
- - **Resource:** [Evolution du nombre de salles de sport en Tunisie entre 2002 et 2018](https://catalog.data.gov.tn/dataset/9916a4d9-d086-447f-9172-bd5c87d24a4e/resource/4b92e054-9461-494f-aca8-9811d7453439/download/evolution_du_nombre_de_salles_de_sport_2002_-_2018.csv)
42
- - **Format:** `CSV`
43
- - **License:** [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
44
- - **Packaging mode:** `tabular_resource`
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
 
46
- ## Geographic coverage
47
 
48
- 1 Africa country:
49
 
50
- | Country | Rows | First year | Last year | Name |
51
- |---------|-----:|-----------:|----------:|------|
52
  | `TUN` | 33 | 2002 | 2018 | `Tunisia` |
53
 
54
- ## Indicators or Resource Contents
55
 
56
- - This source file is packaged as a normalized tabular resource.
57
 
58
  ## Schema
59
 
60
  | Column | Type | Description | Example |
61
  |--------|------|-------------|---------|
62
- | `source_record_id` | `string` | Stable row identifier for tabular resources. | `4b92e054-9461-494f-aca8-9811d7453439:0` |
63
- | `country_iso3` | `string` | ISO3 country code. | `TUN` |
64
- | `country_name` | `string` | Country name. | `Tunisia` |
65
- | `gouvernorats_2002_2003_2004_2005_2006_2007_2008_2009_201` | `string` | Source column. | `Ben Arous;6;7;10;11;11;11;12;13;13;13;14;15;15;15;16;17;17` |
66
- | `source_period_start_year` | `Int64` | First year inferred from source resource metadata. | `2002` |
67
- | `source_period_end_year` | `Int64` | Last year inferred from source resource metadata. | `2018` |
68
- | `source_period_label` | `string` | Human-readable period inferred from source resource metadata. | `2002-2018` |
69
  | `source_provider` | `string` | Publishing organization. | `Commune de Tataouine` |
70
- | `source_dataset` | `string` | Source package title. | `Evolution du nombre de salles de sport en Tunisie entre 2002 et 2018` |
71
- | `source_resource` | `string` | Source resource title. | `Evolution du nombre de salles de sport en Tunisie entre 2002 et 2018` |
72
- | `source_package_id` | `string` | CKAN package UUID. | `9916a4d9-d086-447f-9172-bd5c87d24a4e` |
73
- | `source_resource_id` | `string` | CKAN resource UUID. | `4b92e054-9461-494f-aca8-9811d7453439` |
74
- | `source_url` | `string` | Original source resource URL. | `https://catalog.data.gov.tn/dataset/9916a4d9-d086-447f-9172-bd5c87d24a4e` |
75
  | `license_id` | `string` | Source license identifier. | `cc-by` |
76
- | `retrieved_at` | `string` | UTC retrieval timestamp. | `2026-07-18T23:08:36Z` |
77
 
78
  ## Usage
79
 
@@ -85,29 +107,76 @@ df = ds["train"].to_pandas()
85
  print(df.head())
86
  ```
87
 
88
- ### Filter to one country
89
 
90
  ```python
91
- sample_country = df[df["country_iso3"] == "TUN"]
 
92
  ```
93
 
94
- ### Work with indicators
95
 
96
  ```python
97
- if "indicator_id" in df.columns:
98
- print(df["indicator_id"].value_counts().head())
99
- sample = df.sort_values([c for c in ["indicator_id", "year"] if c in df.columns])
100
  ```
101
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
102
  ## Citation
103
 
104
  ```bibtex
105
  @misc{electric_sheep_africa_africa_tunisia_evolution_du_nombre_de_salles_de_sport_en_tunisie_entre_20_e24c95_2018,
106
- title = {Evolution du nombre de salles de sport en Tunisie entre 2002 et 2018 | Africa (Tunisia official open data)},
107
  author = {Commune de Tataouine},
108
  year = {2018},
109
  url = {https://catalog.data.gov.tn/dataset/evolution-du-nombre-de-salles-de-sport-en-tunisie-entre-2002-et-2018},
110
- publisher = {HuggingFace Datasets, repackaged by Electric Sheep Africa},
111
  howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-tunisia-evolution-du-nombre-de-salles-de-sport-en-tunisie-entre-20-e24c958c}}
112
  }
113
  ```
@@ -116,20 +185,14 @@ if "indicator_id" in df.columns:
116
 
117
  Released under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
118
 
119
- Original data (c) Commune de Tataouine. When using this dataset, please cite both the
120
- original source above and the Electric Sheep Africa repackaging.
121
-
122
- ## About Electric Sheep
123
 
124
- Electric Sheep Africa is part of the Electric Sheep mission: a unified,
125
- ML-ready data layer for Africa on Hugging Face. We pull data from authoritative
126
- open sources, normalize the schemas, package as Parquet, and publish with
127
- consistent dataset cards so researchers and developers can use `load_dataset()`
128
- to start working in seconds.
129
 
130
- Browse the full collection: [huggingface.co/electricsheepafrica](https://huggingface.co/electricsheepafrica)
131
 
132
  ---
133
 
134
- Provenance: ingested 2026-07-19 via the Electric Sheep pipeline. Source URL:
135
- https://catalog.data.gov.tn/dataset/9916a4d9-d086-447f-9172-bd5c87d24a4e/resource/4b92e054-9461-494f-aca8-9811d7453439/download/evolution_du_nombre_de_salles_de_sport_2002_-_2018.csv
 
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
+ - "tunisia"
17
+ - "commune-de-tataouine"
18
+ - "tunisia-open-data"
19
+ - "transport"
20
+ configs:
21
+ - config_name: default
22
+ data_files:
23
+ - split: train
24
+ path: data/train-00000-of-00001.parquet
25
+ pretty_name: "Evolution Du Nombre De Salles De Sport En Tunisie Entre 20 | Africa (Tunisia Open Data)"
26
  ---
27
 
28
+ # Evolution Du Nombre De Salles De Sport En Tunisie Entre 20 | Africa (Tunisia Open Data)
29
 
30
+ **33 rows** - **1 Africa country/area** - **2002-2018** - **source table** - *Engineered by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica)*
31
 
32
  ![rows](https://img.shields.io/badge/rows-33-blue)
33
  ![countries](https://img.shields.io/badge/countries-1-green)
34
+ ![period](https://img.shields.io/badge/period-2002--2018-orange)
35
  ![indicators](https://img.shields.io/badge/indicators-0-purple)
36
+ ![license](https://img.shields.io/badge/license-cc--by--4.0-lightgrey)
37
 
38
  ## TL;DR
39
 
40
+ This dataset contains **33 rows** from **Tunisia Open Data**, covering **Evolution Du Nombre De Salles De Sport En Tunisie Entre 20**. It is published as ML-ready Parquet with consistent Hugging Face metadata, source provenance, and analysis-friendly loading examples.
 
 
41
 
42
+ ## What This Dataset Measures
43
 
44
+ Transport datasets help analysts examine mobility, infrastructure, passenger movement, logistics, and access to services.
45
+
46
+ Source-provided context: Evolution du nombre de salles de sport en Tunisie entre 2002 et 2018.
47
+
48
+ ## How To Read This Dataset
49
+
50
+ - **One row means:** one source record from the original tabular resource, with Electric Sheep Africa provenance columns added where available.
51
+ - **Primary geography column:** `country_iso3`.
52
+ - **Best time column:** `not detected`.
53
+ - **Time coverage basis:** source metadata.
54
+ - **Recommended join keys:** `country_iso3` where available plus source-specific keys.
55
+
56
+ ## Coverage
57
+
58
+ | Dimension | Value |
59
+ |---|---:|
60
+ | Rows | 33 |
61
+ | Countries/areas | 1 |
62
+ | First period | 2002 |
63
+ | Last period | 2018 |
64
+ | Indicators | 0 |
65
+ | Columns | 15 |
66
+ | Source format | CSV |
67
 
68
+ ## Geographic Coverage
69
 
70
+ Top areas shown below, sorted by row count when available:
71
 
72
+ | Area | Rows | First year | Last year | Name |
73
+ |------|-----:|-----------:|----------:|------|
74
  | `TUN` | 33 | 2002 | 2018 | `Tunisia` |
75
 
76
+ ## Indicators, Variables, Or Resource Contents
77
 
78
+ - This repo preserves one source tabular resource with its usable columns kept together.
79
 
80
  ## Schema
81
 
82
  | Column | Type | Description | Example |
83
  |--------|------|-------------|---------|
84
+ | `source_record_id` | `string` | Stable row identifier assigned during Electric Sheep Africa engineering. | `4b92e054-9461-494f-aca8-9811d7453439:0` |
85
+ | `country_iso3` | `string` | ISO3 country or area code. | `TUN` |
86
+ | `country_name` | `string` | Country or area name. | `Tunisia` |
87
+ | `gouvernorats_2002_2003_2004_2005_2006_2007_2008_2009_201` | `string` | Source column from the original resource. | `Ben Arous;6;7;10;11;11;11;12;13;13;13;14;15;15;15;16;17;17` |
88
+ | `source_period_start_year` | `int64` | Start year inferred from source metadata. | `2002` |
89
+ | `source_period_end_year` | `int64` | End year inferred from source metadata. | `2018` |
90
+ | `source_period_label` | `string` | Source column from the original resource. | `2002-2018` |
91
  | `source_provider` | `string` | Publishing organization. | `Commune de Tataouine` |
92
+ | `source_dataset` | `string` | Source dataset or package title. | `Evolution du nombre de salles de sport en Tunisie entre 2002 et 2018` |
93
+ | `source_resource` | `string` | Source resource title, table name, or file name. | `Evolution du nombre de salles de sport en Tunisie entre 2002 et 2018` |
94
+ | `source_package_id` | `string` | Source package identifier. | `9916a4d9-d086-447f-9172-bd5c87d24a4e` |
95
+ | `source_resource_id` | `string` | Source resource identifier. | `4b92e054-9461-494f-aca8-9811d7453439` |
96
+ | `source_url` | `string` | Original source URL or download URL. | `https://catalog.data.gov.tn/dataset/9916a4d9-d086-447f-9172-bd5c87d24...` |
97
  | `license_id` | `string` | Source license identifier. | `cc-by` |
98
+ | `retrieved_at` | `string` | UTC source retrieval timestamp from the Electric Sheep Africa pipeline. | `2026-07-18T23:08:36Z` |
99
 
100
  ## Usage
101
 
 
107
  print(df.head())
108
  ```
109
 
110
+ ### Inspect Columns
111
 
112
  ```python
113
+ print(df.info())
114
+ print(df.head())
115
  ```
116
 
117
+ ### Filter By Geography
118
 
119
  ```python
120
+ if "country_iso3" in df.columns:
121
+ sample = df[df["country_iso3"] == "TUN"]
 
122
  ```
123
 
124
+ ### Time-Series Pattern
125
+
126
+ ```python
127
+ if "value" in df.columns and "year" in df.columns:
128
+ trend = df.sort_values("year")
129
+ ```
130
+
131
+ ### Pivot For Analysis
132
+
133
+ ```python
134
+ if {"indicator_id", "year", "value"}.issubset(df.columns):
135
+ matrix = df.pivot_table(index="year", columns="indicator_id", values="value")
136
+ print(matrix.tail())
137
+ ```
138
+
139
+ ## Data Quality Notes
140
+
141
+ - No canonical year/date column was detected in the packaged table; use source metadata and domain context for temporal interpretation.
142
+ - Missing values are preserved rather than silently imputed.
143
+ - Column names are standardized for machine use; source meanings are preserved where known.
144
+ - Always confirm source methodology, units, and collection definitions before policy, production, or redistribution-sensitive use.
145
+
146
+ ## Source And Provenance
147
+
148
+ - **Source:** [Tunisia Open Data](https://catalog.data.gov.tn/dataset/evolution-du-nombre-de-salles-de-sport-en-tunisie-entre-2002-et-2018)
149
+ - **Publisher:** Commune de Tataouine
150
+ - **Portal:** [https://catalog.data.gov.tn](https://catalog.data.gov.tn)
151
+ - **Resource:** [Evolution du nombre de salles de sport en Tunisie entre 2002 et 2018](https://catalog.data.gov.tn/dataset/9916a4d9-d086-447f-9172-bd5c87d24a4e/resource/4b92e054-9461-494f-aca8-9811d7453439/download/evolution_du_nombre_de_salles_de_sport_2002_-_2018.csv)
152
+ - **License:** [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
153
+ - **Retrieved/generated:** `2026-07-19T00:30:05Z`
154
+ - **Hugging Face repo:** [electricsheepafrica/africa-tunisia-evolution-du-nombre-de-salles-de-sport-en-tunisie-entre-20-e24c958c](https://huggingface.co/datasets/electricsheepafrica/africa-tunisia-evolution-du-nombre-de-salles-de-sport-en-tunisie-entre-20-e24c958c)
155
+
156
+ ## Transformations Applied
157
+
158
+ - Converted the source table to Parquet for efficient analytics and ML workflows.
159
+ - Added or preserved source provenance columns where available.
160
+ - Standardized README metadata, dataset loading configuration, schema documentation, and citation format.
161
+ - Preserved source-reported values without analytical imputation.
162
+
163
+ ## Suggested Analyses
164
+
165
+ - Track mobility over time
166
+ - Compare routes or geographies
167
+ - Join with economic and population data
168
+ - Check missingness before modeling
169
+ - Use `country_iso3` as the safest geography join key when present
170
+
171
  ## Citation
172
 
173
  ```bibtex
174
  @misc{electric_sheep_africa_africa_tunisia_evolution_du_nombre_de_salles_de_sport_en_tunisie_entre_20_e24c95_2018,
175
+ title = {Evolution Du Nombre De Salles De Sport En Tunisie Entre 20 | Africa (Tunisia Open Data)},
176
  author = {Commune de Tataouine},
177
  year = {2018},
178
  url = {https://catalog.data.gov.tn/dataset/evolution-du-nombre-de-salles-de-sport-en-tunisie-entre-2002-et-2018},
179
+ publisher = {Hugging Face Datasets, engineered by Electric Sheep Africa},
180
  howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-tunisia-evolution-du-nombre-de-salles-de-sport-en-tunisie-entre-20-e24c958c}}
181
  }
182
  ```
 
185
 
186
  Released under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
187
 
188
+ Original data is published by Commune de Tataouine. Electric Sheep Africa
189
+ engineering standardizes the data for discovery, loading, and analysis on
190
+ Hugging Face. Cite both the original source and this ML-ready dataset when used.
 
191
 
192
+ ## About Electric Sheep Africa
 
 
 
 
193
 
194
+ Electric Sheep Africa publishes ML-ready African public datasets on Hugging Face.
195
 
196
  ---
197
 
198
+ Provenance: README standardized 2026-08-12 by the Electric Sheep Africa README system. Source URL: https://catalog.data.gov.tn/dataset/evolution-du-nombre-de-salles-de-sport-en-tunisie-entre-2002-et-2018