Matheus Sergio.
← Back to portfolio
Case study · Data Analytics + Business Intelligence

Live Cattle Exports

A reproducible analysis of Brazilian live cattle exports using official trade and livestock data to explain volume, value, destinations and market concentration.

PythonpandasComex StatIBGEPower BI

Documented case baseline: Working pipeline · Public data. This edition preserves the delivery states and evidence of the Portuguese case.

Business question

How much does Brazil export, where to, and from which regions?

The project builds a historical and regional view of live cattle exports: head count, FOB value, average price per head, international destinations, state and regional shares, and scale relative to the cattle herd.

Official sources

Comex Stat and IBGE.

Foreign-trade data uses HS4 heading 0102 in official MDIC/Comex Stat datasets. Herd size comes from IBGE’s Municipal Livestock Survey, table 3939, through the Aggregates API.

Pipeline

From official sources to the dashboard.

The process is automated and reproducible, with dataset validation before analytical outputs are published.

01 · Extraction

Annual Comex Stat files and the IBGE Aggregates API.

02 · Transformation

NCM/HS4 filters, chunk processing and regional standardization.

03 · Analysis

YoY, CAGR, regional shares, average price and destination HHI.

04 · BI

DAX measures, Power Query and a model prepared for Power BI.

05 · Automation

GitHub Actions collects, validates and publishes processed CSV files as artifacts.

Live cattle export pipeline from Comex Stat and IBGE through Python, validation and BI
Official sources → Python ETL → automated validation → BI and dashboard outputs.
Visualizations

Volume, value and average price over time.

Charts use the pipeline’s validated annual series. The 2026 YTD period is January–August and must not be treated as a complete year.

Bar chart of live cattle exported by Brazil between 2020 and January–August 2026
Exported head count: historical physical export volume.
Line chart of live cattle export FOB value in millions of US dollars
FOB value: historical export value in millions of US dollars.
Line chart of average FOB value in US dollars per exported animal
US dollars per head: average FOB value per exported animal.
Validated results

2020–2026 YTD.

The pipeline records a validated annual series for 2020–2025 and 2026 through August. In 2025, it reports 1,050,390 exported head and approximately US$1.046 billion in FOB value. In January–August 2026, it reports 917,564 head and approximately US$1.173 billion.

These numbers preserve the Portuguese case dataset and reporting cutoff; they are not a fresh data extraction.

Methodological caution

Stock is not a physical flow balance.

The project does not calculate “herd minus exports” as the number of animals remaining in Brazil. Instead, exports are expressed as a percentage of annual herd size, avoiding an incorrect stock-versus-flow interpretation.

Deliverables

Pipeline, statistical analysis, web dashboard and Power BI model.

Alongside processed datasets and methodological documentation, the responsive web dashboard includes Overview, Destinations, Brazil/Regions, Historical Trends and 2026 YTD views.

Sources and evidence

Inspect the implementation and its limits.

Source documents and original product screenshots may be in Portuguese. Their language does not change the delivery state or the scope of the evidence.