Dataset package for site-specific NPK fertilizer recommendations in Morocco.
fertimap-data is the data package of the fertimap ecosystem. It provides a simple way to discover the datasets currently available and load them directly into Python. Future work will expand the catalog with additional datasets covering more crops, sources, and regions, add more notebooks for analysis and comparison, and introduce hosted remote downloads as the collection grows.
pip install fertimap-dataThis also pulls:
fertimappandaspyarrow
import fertimap_data as ftd
print(ftd.list_datasets())
df = ftd.load_dataset("esa_worldcereal_morocco_cereals_medium")
print(df.head())Users can convert parquet to CSV themselves after loading:
import fertimap_data as ftd
df = ftd.load_dataset("esa_worldcereal_morocco_cereals_medium")
df.to_csv("fertimap_esa_worldcereal_morocco_cereals_medium.csv", index=False)Current snapshot for the first packaged dataset:
- dataset id:
esa_worldcereal_morocco_cereals_medium - file:
fertimap_esa_worldcereal_morocco_cereals_medium.parquet - rows: 132,017
- columns: 22
- unique sites: 44,096
- regions: 10
- provinces: 66
- communes: 1,149
fertimap-data/
├── src/
│ └── fertimap_data/
│ ├── __init__.py
│ ├── core.py
│ ├── registry.json
│ └── datasets/
│ └── fertimap_esa_worldcereal_morocco_cereals_medium.parquet
├── tests/
│ └── test_api.py
├── LICENSE
├── pyproject.toml
└── README.md