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

**URL:** <https://discourse.julialang.org/t/ann-agridatasets-jl-open-agricultural-datasets-for-julia/139694>\
**Category:** Package Announcements\
**Tags:** package, data, dataframes\
**Created:** [September 27, 2026, 3:36am UTC](https://discourse.julialang.org/t/ann-agridatasets-jl-open-agricultural-datasets-for-julia/139694 "2026-09-27T03:36:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![renzocaceresrossi](https://avatars.discourse-cdn.com/v4/letter/r/8c91f0/32.png) [@renzocaceresrossi](https://discourse.julialang.org/u/renzocaceresrossi)\
**Post date:** [September 27, 2026, 3:36am UTC](https://discourse.julialang.org/t/ann-agridatasets-jl-open-agricultural-datasets-for-julia/139694/1 "2026-09-27T03:36:06Z")

</div>

# 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:

```julia
using Pkg
Pkg.add("AgriDatasets")

```

* * *

## Main Functions & Examples

### 1. List Available Datasets

To view all available datasets in the package:

```julia
using AgriDatasets

# List all dataset names
list_datasets()

```

### 2. Load a Dataset

Load any dataset directly into a DataFrame:

```julia
# 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:

```julia
# View information and metadata
dataset_info("crops_yield")

```

---

<div class="post-metadata">

**Author:** ![sylvaticus](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sylvaticus/32/203883_2.png) [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Post date:** [September 27, 2026, 6:00pm UTC](https://discourse.julialang.org/t/ann-agridatasets-jl-open-agricultural-datasets-for-julia/139694/2 "2026-09-27T18:00:31Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![renzocaceresrossi](https://avatars.discourse-cdn.com/v4/letter/r/8c91f0/32.png) [@renzocaceresrossi](https://discourse.julialang.org/u/renzocaceresrossi)\
**Post date:** [September 27, 2026, 7:49pm UTC](https://discourse.julialang.org/t/ann-agridatasets-jl-open-agricultural-datasets-for-julia/139694/3 "2026-09-27T19:49:25Z")

</div>

This post was temporarily hidden by the community for possibly being off-topic, unfocused, inappropriate, or spammy.

---

<div class="post-metadata">

**Author:** ![renzocaceresrossi](https://avatars.discourse-cdn.com/v4/letter/r/8c91f0/32.png) [@renzocaceresrossi](https://discourse.julialang.org/u/renzocaceresrossi)\
**Post date:** [September 27, 2026, 10:31pm UTC](https://discourse.julialang.org/t/ann-agridatasets-jl-open-agricultural-datasets-for-julia/139694/4 "2026-09-27T22:31:36Z")

</div>

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`.
