Skip to main content

Dataset package for soil fertility and fertilizer recommendation workflows across Morocco.

Project description

turba-data

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

PyPI Socket Downloads License: MIT

turba-data is the data package of the turba 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 turba-data

This also pulls:

  • pandas
  • pyarrow

Quick start

import turba_data as td

print(td.list_datasets())

df = td.load_dataset("esa_worldcereal_morocco_cereals_medium")
print(df.head())

Users can convert parquet to CSV themselves after loading:

import turba_data as td

df = td.load_dataset("esa_worldcereal_morocco_cereals_medium")
df.to_csv("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: esa_worldcereal_morocco_cereals_medium.parquet
  • rows: 132,017
  • columns: 22
  • unique sites: 44,096
  • regions: 10
  • provinces: 66
  • communes: 1,149

Repository structure

turba-data/
├── src/
│   └── turba_data/
│       ├── __init__.py
│       ├── core.py
│       ├── registry.json
│       └── datasets/
│           └── esa_worldcereal_morocco_cereals_medium.parquet
├── tests/
│   └── test_api.py
├── LICENSE
├── pyproject.toml
└── README.md

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

turba_data-0.1.0.tar.gz (1.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

turba_data-0.1.0-py3-none-any.whl (1.6 MB view details)

Uploaded Python 3

File details

Details for the file turba_data-0.1.0.tar.gz.

File metadata

  • Download URL: turba_data-0.1.0.tar.gz
  • Upload date:
  • Size: 1.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for turba_data-0.1.0.tar.gz
Algorithm Hash digest
SHA256 64fe150fc471dbb60227f98fbf1a346dc693155e9ef353b434f8f50b63d81990
MD5 3cbb588e6129e00fbc14122b776a9d31
BLAKE2b-256 1cee90b1d3df420559c21ceb81680051c6d09b96380d0d9ce08c61b228f063ba

See more details on using hashes here.

File details

Details for the file turba_data-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: turba_data-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for turba_data-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b30efa008a888ac178ebd017b007b2bc9d47317fa12e7c2e593ac134efb3f9d4
MD5 6c0f1a731a69a810972acd0f3fb57752
BLAKE2b-256 c4abbd924f7237e476ac89eec9e47af12d9b8c52ed5a4b374bd9cad3f77f5b65

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page