Skip to content

fertimap/fertimap-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fertimap-data

Dataset package for site-specific NPK fertilizer recommendations in Morocco.

PyPI DOI Socket Downloads License: MIT

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.

Install

pip install fertimap-data

This also pulls:

  • fertimap
  • pandas
  • pyarrow

Quick start

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)

First release dataset

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

Repository structure

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