lucyi-morn commited on
Commit
1528bae
·
verified ·
1 Parent(s): 66d2f9d

Upload dataset folder

Browse files
README.md ADDED
@@ -0,0 +1,148 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ language:
4
+ - en
5
+ task_categories:
6
+ - tabular-regression
7
+ - time-series-forecasting
8
+ multilinguality: monolingual
9
+ size_categories:
10
+ - 1K<n<10K
11
+ tags:
12
+ - tabular
13
+ - csv
14
+ - africa
15
+ - libya
16
+ - official-statistics
17
+ - open-data
18
+ - energy
19
+ configs:
20
+ - config_name: default
21
+ data_files:
22
+ - split: train
23
+ path: data/train-00000-of-00001.parquet
24
+ pretty_name: "Libya - Energy and Mining | Africa (Libya official open data)"
25
+ ---
26
+
27
+ # Libya - Energy and Mining | Africa (Libya official open data)
28
+
29
+ 1,160 rows - 1 Africa country - 1962-2024 - Repackaged by [Electric Sheep Africa](https://huggingface.co/electricsheepafrica)
30
+
31
+ ![rows](https://img.shields.io/badge/rows-1160-blue)
32
+ ![countries](https://img.shields.io/badge/countries-1-green)
33
+ ![years](https://img.shields.io/badge/years-1962-2024-orange)
34
+ ![indicators](https://img.shields.io/badge/indicators-1-purple)
35
+ ![license](https://img.shields.io/badge/license-cc-by-4.0-lightgrey)
36
+
37
+ ## TL;DR
38
+
39
+ This dataset packages one official `CSV` resource from **Libya** as
40
+ ML-ready Parquet. The source file is the provenance boundary; all usable
41
+ indicators or tabular columns from the resource stay together in this repo.
42
+
43
+ ## About the source
44
+
45
+ - **Source:** [Libya - Energy and Mining](https://data.humdata.org/dataset/world-bank-energy-and-mining-indicators-for-libya)
46
+ - **Publisher:** World Bank Group
47
+ - **Resource:** [Energy and Mining Indicators for Libya](https://data.humdata.org/dataset/066aa04d-e428-4624-9d16-52385615854e/resource/0c252747-98a7-4ce8-a817-754bcba25282/download/energy-and-mining_lby.csv)
48
+ - **Format:** `CSV`
49
+ - **License:** [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
50
+ - **Packaging mode:** `indicator_long`
51
+
52
+ ## Geographic coverage
53
+
54
+ 1 Africa country:
55
+
56
+ | Country | Rows | First year | Last year | Name |
57
+ |---------|-----:|-----------:|----------:|------|
58
+ | `LBY` | 1,160 | 1962 | 2024 | `Libya` |
59
+
60
+ ## Indicators or Resource Contents
61
+
62
+ - `libya-energy-and-mining-d159146e` - Libya - Energy and Mining
63
+
64
+ ## Schema
65
+
66
+ | Column | Type | Description | Example |
67
+ |--------|------|-------------|---------|
68
+ | `indicator_id` | `string` | Stable indicator identifier. | `libya-energy-and-mining-d159146e` |
69
+ | `indicator_name` | `string` | Human-readable indicator name. | `Libya - Energy and Mining` |
70
+ | `country_iso3` | `string` | ISO3 country code. | `LBY` |
71
+ | `country_name` | `string` | Country name. | `Libya` |
72
+ | `year` | `Int64` | Observation year. | `2021` |
73
+ | `value` | `float64` | Numeric observation value. | `5.26` |
74
+ | `unit` | `string` | Measurement unit, when available. | `source_units_unspecified` |
75
+ | `dimension_country_name` | `string` | Source dimension. | `Libya` |
76
+ | `dimension_country_iso3` | `string` | Source dimension. | `LBY` |
77
+ | `dimension_indicator_name` | `string` | Source dimension. | `Energy intensity level of primary energy (MJ/$2021 PPP GDP)` |
78
+ | `dimension_indicator_code` | `string` | Source dimension. | `EG.EGY.PRIM.PP.KD` |
79
+ | `source_period_start_year` | `Int64` | First year inferred from source resource metadata. | `` |
80
+ | `source_period_end_year` | `Int64` | Last year inferred from source resource metadata. | `` |
81
+ | `source_period_label` | `string` | Human-readable period inferred from source resource metadata. | `` |
82
+ | `source_provider` | `category` | Publishing organization. | `World Bank Group` |
83
+ | `source_dataset` | `category` | Source package title. | `Libya - Energy and Mining` |
84
+ | `source_resource` | `category` | Source resource title. | `Energy and Mining Indicators for Libya` |
85
+ | `source_package_id` | `category` | CKAN package UUID. | `066aa04d-e428-4624-9d16-52385615854e` |
86
+ | `source_resource_id` | `category` | CKAN resource UUID. | `0c252747-98a7-4ce8-a817-754bcba25282` |
87
+ | `source_url` | `category` | Original source resource URL. | `https://data.humdata.org/dataset/066aa04d-e428-4624-9d16-52385615854e/re` |
88
+ | `license_id` | `category` | Source license identifier. | `cc-by` |
89
+ | `retrieved_at` | `category` | UTC retrieval timestamp. | `2026-08-17T13:13:43Z` |
90
+
91
+ ## Usage
92
+
93
+ ```python
94
+ from datasets import load_dataset
95
+
96
+ ds = load_dataset("electricsheepafrica/africa-libya-libya-energy-and-mining-930fb99f")
97
+ df = ds["train"].to_pandas()
98
+ print(df.head())
99
+ ```
100
+
101
+ ### Filter to one country
102
+
103
+ ```python
104
+ sample_country = df[df["country_iso3"] == "LBY"]
105
+ ```
106
+
107
+ ### Work with indicators
108
+
109
+ ```python
110
+ if "indicator_id" in df.columns:
111
+ print(df["indicator_id"].value_counts().head())
112
+ sample = df.sort_values([c for c in ["indicator_id", "year"] if c in df.columns])
113
+ ```
114
+
115
+ ## Citation
116
+
117
+ ```bibtex
118
+ @misc{electric_sheep_africa_africa_libya_libya_energy_and_mining_930fb99f_2024,
119
+ title = {Libya - Energy and Mining | Africa (Libya official open data)},
120
+ author = {World Bank Group},
121
+ year = {2024},
122
+ url = {https://data.humdata.org/dataset/world-bank-energy-and-mining-indicators-for-libya},
123
+ publisher = {HuggingFace Datasets, repackaged by Electric Sheep Africa},
124
+ howpublished = {\url{https://huggingface.co/datasets/electricsheepafrica/africa-libya-libya-energy-and-mining-930fb99f}}
125
+ }
126
+ ```
127
+
128
+ ## License
129
+
130
+ Released under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
131
+
132
+ Original data (c) World Bank Group. When using this dataset, please cite both the
133
+ original source above and the Electric Sheep Africa repackaging.
134
+
135
+ ## About Electric Sheep
136
+
137
+ Electric Sheep Africa is part of the Electric Sheep mission: a unified,
138
+ ML-ready data layer for Africa on Hugging Face. We pull data from authoritative
139
+ open sources, normalize the schemas, package as Parquet, and publish with
140
+ consistent dataset cards so researchers and developers can use `load_dataset()`
141
+ to start working in seconds.
142
+
143
+ Browse the full collection: [huggingface.co/electricsheepafrica](https://huggingface.co/electricsheepafrica)
144
+
145
+ ---
146
+
147
+ Provenance: ingested 2026-08-17 via the Electric Sheep pipeline. Source URL:
148
+ https://data.humdata.org/dataset/066aa04d-e428-4624-9d16-52385615854e/resource/0c252747-98a7-4ce8-a817-754bcba25282/download/energy-and-mining_lby.csv
data/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7d91818889925066b7eef86a605154b48ebf3f34a4f9ee1e62aae6971925d3ec
3
+ size 25050
metadata/source_snapshot.json ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "columns": [
3
+ "indicator_id",
4
+ "indicator_name",
5
+ "country_iso3",
6
+ "country_name",
7
+ "year",
8
+ "value",
9
+ "unit",
10
+ "dimension_country_name",
11
+ "dimension_country_iso3",
12
+ "dimension_indicator_name",
13
+ "dimension_indicator_code",
14
+ "source_period_start_year",
15
+ "source_period_end_year",
16
+ "source_period_label",
17
+ "source_provider",
18
+ "source_dataset",
19
+ "source_resource",
20
+ "source_package_id",
21
+ "source_resource_id",
22
+ "source_url",
23
+ "license_id",
24
+ "retrieved_at"
25
+ ],
26
+ "generated_at": "2026-08-17T13:34:57Z",
27
+ "indicator_count": 1,
28
+ "mode": "indicator_long",
29
+ "repo_id": "electricsheepafrica/africa-libya-libya-energy-and-mining-930fb99f",
30
+ "rows": 1160,
31
+ "source": {
32
+ "api_base_url": "https://data.humdata.org/api/3/action",
33
+ "country_iso3": "LBY",
34
+ "country_name": "Libya",
35
+ "group_names": "lby",
36
+ "license_id": "cc-by",
37
+ "license_title": "Creative Commons Attribution International (CC BY)",
38
+ "license_url": "http://www.opendefinition.org/licenses/cc-by",
39
+ "organization_name": "world-bank-group",
40
+ "organization_title": "World Bank Group",
41
+ "package_id": "066aa04d-e428-4624-9d16-52385615854e",
42
+ "package_name": "world-bank-energy-and-mining-indicators-for-libya",
43
+ "package_notes": "Contains data from the World Bank's [data portal](http://data.worldbank.org/). There is also a [consolidated country dataset](https://data.humdata.org/dataset/world-bank-combined-indicators-for-libya) on HDX. The world economy needs ever-increasing amounts of energy to sustain economic growth, raise living standards, and reduce poverty. But today's trends in energy use are not sustainable. As the world's population grows and economies become more industrialized, nonrenewable energy sources will become scarcer and more costly. Data here on energy production, use, dependency, and efficiency are compiled by the World Bank from the International Energy Agency and the Carbon Dioxide Information Analysis Center.",
44
+ "package_page_url": "https://data.humdata.org/dataset/world-bank-energy-and-mining-indicators-for-libya",
45
+ "package_title": "Libya - Energy and Mining",
46
+ "portal_url": "https://data.humdata.org",
47
+ "resource_description": "csv containing Energy and Mining indicators Indicators: Access to electricity, Adjusted savings, Alternative and nuclear energy, Combustible renewables and waste, Electric power consumption, Electric power transmission and distribution losses, Electricity production from coal sources, Electricity production from hydroelectric sources, Electricity production from natural gas sources, Electricity production from nuclear sources, Electricity production from oil, Electricity production from oil sources, Electricity production from renewable sources, Energy imports, Energy intensity level of primary energy, Energy use, Fossil fuel energy consumption, Fuel exports, Fuel imports, GDP per unit of energy use, Mineral rents, Natural gas rents, Oil rents, Ores and metals exports, Ores and metals imports, Renewable electricity output, Renewable energy consumption, Total natural resources rents",
48
+ "resource_format": "CSV",
49
+ "resource_id": "0c252747-98a7-4ce8-a817-754bcba25282",
50
+ "resource_last_modified": "2026-07-17T00:30:54.645545",
51
+ "resource_name": "Energy and Mining Indicators for Libya",
52
+ "resource_position": "0",
53
+ "resource_url": "https://data.humdata.org/dataset/066aa04d-e428-4624-9d16-52385615854e/resource/0c252747-98a7-4ce8-a817-754bcba25282/download/energy-and-mining_lby.csv",
54
+ "tag_names": "development,energy,indicators"
55
+ },
56
+ "year_max": 2024,
57
+ "year_min": 1962
58
+ }