Dataset Preview
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed because of a cast error
Error code: DatasetGenerationCastError
Exception: DatasetGenerationCastError
Message: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 8 new columns ({'year', 'qty', 'trade_value_usd', 'net_weight_kg', 'flow', 'partner_code', 'hs_chapter', 'qty_unit'}) and 7 missing columns ({'precipitation_sum', 'date', 'temperature_2m_mean', 'wind_speed_10m_max', 'city', 'temperature_2m_max', 'temperature_2m_min'}).
This happened while the csv dataset builder was generating data using
hf://datasets/YsfMO98/morocco-1gb-real-data/comtrade_morocco_ag2.csv (at revision e5c202e4809b9101c22f207eafb8b4be0ed27ad5), ['hf://datasets/YsfMO98/morocco-1gb-real-data@e5c202e4809b9101c22f207eafb8b4be0ed27ad5/climate_morocco_cities.csv', 'hf://datasets/YsfMO98/morocco-1gb-real-data@e5c202e4809b9101c22f207eafb8b4be0ed27ad5/comtrade_morocco_ag2.csv', 'hf://datasets/YsfMO98/morocco-1gb-real-data@e5c202e4809b9101c22f207eafb8b4be0ed27ad5/education_real.csv', 'hf://datasets/YsfMO98/morocco-1gb-real-data@e5c202e4809b9101c22f207eafb8b4be0ed27ad5/geo/gadm41_MAR_shp.zip', 'hf://datasets/YsfMO98/morocco-1gb-real-data@e5c202e4809b9101c22f207eafb8b4be0ed27ad5/geo\\gadm41_MAR_shp.zip', 'hf://datasets/YsfMO98/morocco-1gb-real-data@e5c202e4809b9101c22f207eafb8b4be0ed27ad5/text\\yt_subs\\moroccan_darija_subtitles.csv', 'hf://datasets/YsfMO98/morocco-1gb-real-data@e5c202e4809b9101c22f207eafb8b4be0ed27ad5/wdi_morocco_full.csv', 'hf://datasets/YsfMO98/morocco-1gb-real-data@e5c202e4809b9101c22f207eafb8b4be0ed27ad5/wikidata_morocco.csv']
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1848, in _prepare_split_single
writer.write_table(table)
~~~~~~~~~~~~~~~~~~^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 765, in write_table
self._write_table(pa_table, writer_batch_size=writer_batch_size)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 773, in _write_table
pa_table = table_cast(pa_table, self._schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2378, in table_cast
return cast_table_to_schema(table, schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2306, in cast_table_to_schema
raise CastError(
...<3 lines>...
)
datasets.table.CastError: Couldn't cast
year: int64
flow: string
partner_code: int64
hs_chapter: int64
trade_value_usd: double
net_weight_kg: double
qty: double
qty_unit: double
-- schema metadata --
pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 1214
to
{'city': Value('string'), 'date': Value('string'), 'temperature_2m_max': Value('float64'), 'temperature_2m_min': Value('float64'), 'temperature_2m_mean': Value('float64'), 'precipitation_sum': Value('float64'), 'wind_speed_10m_max': Value('float64')}
because column names don't match
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1369, in compute_config_parquet_and_info_response
parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
~~~~~~~~~~~~~~~~~~~~~~~~~^
builder, max_dataset_size_bytes=max_dataset_size_bytes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 948, in stream_convert_to_parquet
builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1694, in _prepare_split
for job_id, done, content in self._prepare_split_single(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
):
^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1850, in _prepare_split_single
raise DatasetGenerationCastError.from_cast_error(
...<4 lines>...
)
datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 8 new columns ({'year', 'qty', 'trade_value_usd', 'net_weight_kg', 'flow', 'partner_code', 'hs_chapter', 'qty_unit'}) and 7 missing columns ({'precipitation_sum', 'date', 'temperature_2m_mean', 'wind_speed_10m_max', 'city', 'temperature_2m_max', 'temperature_2m_min'}).
This happened while the csv dataset builder was generating data using
hf://datasets/YsfMO98/morocco-1gb-real-data/comtrade_morocco_ag2.csv (at revision e5c202e4809b9101c22f207eafb8b4be0ed27ad5), ['hf://datasets/YsfMO98/morocco-1gb-real-data@e5c202e4809b9101c22f207eafb8b4be0ed27ad5/climate_morocco_cities.csv', 'hf://datasets/YsfMO98/morocco-1gb-real-data@e5c202e4809b9101c22f207eafb8b4be0ed27ad5/comtrade_morocco_ag2.csv', 'hf://datasets/YsfMO98/morocco-1gb-real-data@e5c202e4809b9101c22f207eafb8b4be0ed27ad5/education_real.csv', 'hf://datasets/YsfMO98/morocco-1gb-real-data@e5c202e4809b9101c22f207eafb8b4be0ed27ad5/geo/gadm41_MAR_shp.zip', 'hf://datasets/YsfMO98/morocco-1gb-real-data@e5c202e4809b9101c22f207eafb8b4be0ed27ad5/geo\\gadm41_MAR_shp.zip', 'hf://datasets/YsfMO98/morocco-1gb-real-data@e5c202e4809b9101c22f207eafb8b4be0ed27ad5/text\\yt_subs\\moroccan_darija_subtitles.csv', 'hf://datasets/YsfMO98/morocco-1gb-real-data@e5c202e4809b9101c22f207eafb8b4be0ed27ad5/wdi_morocco_full.csv', 'hf://datasets/YsfMO98/morocco-1gb-real-data@e5c202e4809b9101c22f207eafb8b4be0ed27ad5/wikidata_morocco.csv']
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
city string | date string | temperature_2m_max float64 | temperature_2m_min float64 | temperature_2m_mean float64 | precipitation_sum float64 | wind_speed_10m_max float64 |
|---|---|---|---|---|---|---|
Casablanca | 1940-01-01 | 18.6 | 11.3 | null | null | 29.3 |
Casablanca | 1940-01-02 | 17.5 | 15 | 16.2 | 25.3 | 33.2 |
Casablanca | 1940-01-03 | 18.4 | 14.4 | 16.3 | 8.6 | 35.6 |
Casablanca | 1940-01-04 | 17.6 | 13.4 | 14.9 | 1.7 | 28.4 |
Casablanca | 1940-01-05 | 19.2 | 11.3 | 14.3 | 0 | 14.1 |
Casablanca | 1940-01-06 | 18.1 | 9.2 | 12.7 | 0 | 7.7 |
Casablanca | 1940-01-07 | 18.5 | 9.2 | 12.7 | 0 | 8 |
Casablanca | 1940-01-08 | 18.7 | 8.3 | 12.6 | 0 | 8.3 |
Casablanca | 1940-01-09 | 18.1 | 10.7 | 14.1 | 0.7 | 9.5 |
Casablanca | 1940-01-10 | 17.3 | 10.7 | 14.5 | 0.2 | 7.9 |
Casablanca | 1940-01-11 | 15.7 | 9.7 | 11.9 | 0.2 | 9.5 |
Casablanca | 1940-01-12 | 13.9 | 8.7 | 10.5 | 3.7 | 22.1 |
Casablanca | 1940-01-13 | 12.7 | 8.8 | 10.5 | 1.7 | 17.1 |
Casablanca | 1940-01-14 | 15.4 | 7.8 | 10.9 | 0 | 13.7 |
Casablanca | 1940-01-15 | 16.3 | 6.1 | 10.5 | 0 | 12.2 |
Casablanca | 1940-01-16 | 15.2 | 5.7 | 10 | 0.2 | 10 |
Casablanca | 1940-01-17 | 14.9 | 8.2 | 11 | 1.4 | 10.6 |
Casablanca | 1940-01-18 | 15.6 | 6.6 | 10.3 | 0 | 14.5 |
Casablanca | 1940-01-19 | 15.8 | 4.9 | 9.9 | 0 | 8.3 |
Casablanca | 1940-01-20 | 15.4 | 9.7 | 12.2 | 1.8 | 15 |
Casablanca | 1940-01-21 | 15.7 | 9.2 | 12.1 | 1.2 | 11.5 |
Casablanca | 1940-01-22 | 14.9 | 10.6 | 12.5 | 6.8 | 26.4 |
Casablanca | 1940-01-23 | 11.8 | 5.2 | 8.9 | 0 | 12.2 |
Casablanca | 1940-01-24 | 12.5 | 2 | 6.8 | 0 | 9.8 |
Casablanca | 1940-01-25 | 16.8 | 2.8 | 9.1 | 0 | 13.5 |
Casablanca | 1940-01-26 | 18.3 | 6.1 | 11.6 | 0 | 13.9 |
Casablanca | 1940-01-27 | 18.9 | 8.3 | 12.6 | 0 | 10.4 |
Casablanca | 1940-01-28 | 19.3 | 7.1 | 12.4 | 0 | 9.4 |
Casablanca | 1940-01-29 | 17.1 | 11 | 13.2 | 0 | 11.5 |
Casablanca | 1940-01-30 | 16.9 | 8.6 | 12.1 | 0.2 | 10.2 |
Casablanca | 1940-01-31 | 17.9 | 7.8 | 12.4 | 0 | 22.5 |
Casablanca | 1940-02-01 | 15.6 | 11.7 | 13.7 | 14.7 | 32 |
Casablanca | 1940-02-02 | 16.4 | 10.7 | 12.9 | 10.4 | 25.5 |
Casablanca | 1940-02-03 | 18.5 | 8.3 | 12.7 | 0 | 16.2 |
Casablanca | 1940-02-04 | 16.6 | 11.9 | 14 | 7.6 | 29.8 |
Casablanca | 1940-02-05 | 16.1 | 10.3 | 13.5 | 1.5 | 22.3 |
Casablanca | 1940-02-06 | 17.9 | 7.3 | 12 | 0 | 9.7 |
Casablanca | 1940-02-07 | 20.1 | 7 | 12.5 | 0 | 10.4 |
Casablanca | 1940-02-08 | 22.8 | 9.6 | 14.7 | 0 | 15.5 |
Casablanca | 1940-02-09 | 21.3 | 10.5 | 14.8 | 0 | 13.9 |
Casablanca | 1940-02-10 | 16.5 | 9.5 | 12.5 | 0.3 | 15.7 |
Casablanca | 1940-02-11 | 18.3 | 8.2 | 12 | 0 | 10.9 |
Casablanca | 1940-02-12 | 21.6 | 6.8 | 13.3 | 0 | 11.7 |
Casablanca | 1940-02-13 | 26.5 | 12.1 | 17.4 | 0.1 | 26.3 |
Casablanca | 1940-02-14 | 19.1 | 11.9 | 14.8 | 5.3 | 14.8 |
Casablanca | 1940-02-15 | 16.1 | 12.2 | 13.6 | 8.5 | 18.6 |
Casablanca | 1940-02-16 | 15.4 | 11 | 12.8 | 7 | 13.7 |
Casablanca | 1940-02-17 | 17.6 | 6.8 | 11.7 | 0 | 14.3 |
Casablanca | 1940-02-18 | 18.8 | 7.1 | 12.3 | 0 | 18.4 |
Casablanca | 1940-02-19 | 21.9 | 7.9 | 13.5 | 0 | 10.5 |
Casablanca | 1940-02-20 | 24.4 | 8.2 | 15.2 | 0 | 8.7 |
Casablanca | 1940-02-21 | 25.9 | 9.7 | 17 | 0 | 11.5 |
Casablanca | 1940-02-22 | 24 | 10.1 | 16.2 | 0 | 9.5 |
Casablanca | 1940-02-23 | 19.3 | 11.4 | 14.7 | 0 | 12.7 |
Casablanca | 1940-02-24 | 16.3 | 10.2 | 14 | 2 | 18.9 |
Casablanca | 1940-02-25 | 16.6 | 8.3 | 12.2 | 0.2 | 12 |
Casablanca | 1940-02-26 | 19.3 | 7.6 | 12.6 | 0 | 14.1 |
Casablanca | 1940-02-27 | 18.8 | 9 | 13 | 0.2 | 10.2 |
Casablanca | 1940-02-28 | 19.4 | 9.8 | 13.9 | 3.4 | 14.5 |
Casablanca | 1940-02-29 | 16.3 | 11.3 | 13 | 18.8 | 21.2 |
Casablanca | 1940-03-01 | 17.3 | 10.9 | 13.7 | 0.6 | 25.6 |
Casablanca | 1940-03-02 | 19.8 | 10.7 | 14.5 | 0 | 14.8 |
Casablanca | 1940-03-03 | 22.3 | 9.1 | 15.4 | 0 | 10.8 |
Casablanca | 1940-03-04 | 21.4 | 13.2 | 16.5 | 0.1 | 12.3 |
Casablanca | 1940-03-05 | 18.2 | 13 | 15.2 | 0.1 | 11.7 |
Casablanca | 1940-03-06 | 18.9 | 12.3 | 14.7 | 0.2 | 17.2 |
Casablanca | 1940-03-07 | 18.9 | 11.4 | 14.3 | 0 | 18.2 |
Casablanca | 1940-03-08 | 20.5 | 11.5 | 15.1 | 0 | 10.8 |
Casablanca | 1940-03-09 | 19.8 | 11 | 14.5 | 0 | 12.8 |
Casablanca | 1940-03-10 | 22.3 | 9.3 | 15.2 | 0 | 11.9 |
Casablanca | 1940-03-11 | 23.6 | 14.1 | 18 | 0 | 14 |
Casablanca | 1940-03-12 | 23.3 | 11.7 | 16.9 | 1.1 | 11.9 |
Casablanca | 1940-03-13 | 24.6 | 14.2 | 18.3 | 1.5 | 11.2 |
Casablanca | 1940-03-14 | 23 | 12.5 | 16.7 | 0.1 | 12.7 |
Casablanca | 1940-03-15 | 23.5 | 11.1 | 16.8 | 0 | 17.9 |
Casablanca | 1940-03-16 | 24.4 | 12.9 | 17.5 | 0 | 18.7 |
Casablanca | 1940-03-17 | 27 | 11.5 | 18.3 | 0 | 9.5 |
Casablanca | 1940-03-18 | 30.7 | 15.7 | 21.4 | 0 | 11.8 |
Casablanca | 1940-03-19 | 29 | 14.1 | 20.3 | 0 | 15 |
Casablanca | 1940-03-20 | 28.3 | 12.8 | 19.4 | 0 | 14.2 |
Casablanca | 1940-03-21 | 29.3 | 14.8 | 20.4 | 0 | 13.2 |
Casablanca | 1940-03-22 | 26.6 | 12.3 | 18.3 | 0 | 13 |
Casablanca | 1940-03-23 | 26.3 | 11.6 | 18 | 0 | 12.7 |
Casablanca | 1940-03-24 | 22.2 | 12.9 | 16.7 | 0 | 16.7 |
Casablanca | 1940-03-25 | 17.1 | 12.2 | 14.2 | 9.5 | 28.4 |
Casablanca | 1940-03-26 | 16.7 | 11.4 | 13.7 | 8.2 | 27.4 |
Casablanca | 1940-03-27 | 15.3 | 10.2 | 12.5 | 12.4 | 22.1 |
Casablanca | 1940-03-28 | 16.2 | 9.7 | 12.3 | 6.3 | 21.1 |
Casablanca | 1940-03-29 | 18.2 | 8.4 | 13 | 0 | 15.5 |
Casablanca | 1940-03-30 | 18.1 | 5.9 | 12 | 0 | 14.5 |
Casablanca | 1940-03-31 | 21.4 | 7.2 | 13.8 | 0 | 14.2 |
Casablanca | 1940-04-01 | 19.5 | 10.3 | 14.3 | 0 | 14.3 |
Casablanca | 1940-04-02 | 17.7 | 11.3 | 14.2 | 0 | 15.2 |
Casablanca | 1940-04-03 | 21.2 | 9.9 | 15.4 | 0 | 19.6 |
Casablanca | 1940-04-04 | 23.8 | 10.5 | 17 | 0 | 16.6 |
Casablanca | 1940-04-05 | 25.2 | 10.5 | 17.5 | 0 | 15.5 |
Casablanca | 1940-04-06 | 26.5 | 13.1 | 18.9 | 0 | 14.1 |
Casablanca | 1940-04-07 | 25.3 | 11 | 17.5 | 0 | 19.1 |
Casablanca | 1940-04-08 | 24.4 | 12.6 | 17.6 | 0 | 17 |
Casablanca | 1940-04-09 | 23.5 | 11.4 | 16.8 | 0 | 18.4 |
End of preview.
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
Morocco 1GB Real Data Collection
~1.1 GB of real Morocco data across geography, language, elevation, climate, trade and economy. No synthetic data.
Contents
| Folder | Files | Size | Source |
|---|---|---|---|
osm/ |
OSM PBF + shapefile (roads, buildings, POIs) | ~700 MB | Geofabrik |
text/ |
Darija/FR press (267k articles), YouTube subtitles, Wikipedia, ASR | ~275 MB | Hugging Face community |
geo/dem/ |
Copernicus DEM 30m (Casa, Marrakech, Tanger, Agadir) | ~130 MB | Copernicus AWS |
geo/ |
GADM v4.1 admin boundaries (SHP + GeoPackage) | ~11 MB | GADM |
*.csv |
Climate (15 cities), Comtrade HS chapters, WDI slice, education, Wikidata | ~4 MB | Open-Meteo, UN, WB, Wikidata |
Fetchers: https://github.com/Youssef-AMARZOU/morocco-economic-pipeline/tree/main/zenml
(fetch_geo.py, fetch_wdi_bulk.py, fetch_climate.py, fetch_comtrade.py, fetch_wikidata.py, fetch_education.py)
License: CC0-1.0 (bulk). Upstream sources keep their own licenses (ODbL for OSM).
- Downloads last month
- 44