[ANN] AgriDatasets.jl: Open agricultural datasets for Julia

AgriDatasets.jl

We are excited to announce the official release of AgriDatasets.jl, a Julia package providing easy access to open agricultural datasets for data analysis, research, and machine learning.


Features

  • Easy access to curated agricultural datasets.

  • Fast integration with Julia’s data ecosystem (DataFrames.jl, CSV.jl).

  • Built-in helper functions to explore and load datasets in seconds.


Installation

To install AgriDatasets.jl, run the following in the Julia REPL or Google Colab:

using Pkg
Pkg.add("AgriDatasets")


Main Functions & Examples

1. List Available Datasets

To view all available datasets in the package:

using AgriDatasets

# List all dataset names
list_datasets()

2. Load a Dataset

Load any dataset directly into a DataFrame:

# Load a specific agricultural dataset
df = get_dataset("crops_yield")

first(df, 5)

3. Get Dataset Metadata & Information

Inspect details and column descriptions of a dataset:

# View information and metadata
dataset_info("crops_yield")

Can you post an overview of the databases currently in the package ?
Are databases locally cashed ?

Hi @sylvaticus, thanks for checking it out!

Right now there are 71 datasets, mostly ported from R packages like agridat, gpk, and AgroR, covering things like crop yield trials, soil classification, pest/disease studies, and some livestock data too. Each one keeps its original license (GPL-2/3, MIT, CC0, CC BY 4.0 depending on the source), and you can check the full details (source, license, description) for any dataset with dataset_info("name").

And yes, they’re bundled with the package itself (in data/), so once you Pkg.add it everything’s already on disk — no downloads happening when you call load_dataset or list_datasets.