explaingit

fabian-carini/uruguay-stats

Analysis updated 2026-05-18

0HTMLAudience · dataComplexity · 2/5Setup · moderate

TLDR

A Python data visualization collection covering Uruguayan statistics: presidential approval, government budgets, bus routes, and radio ratings, with Spanish-annotated charts.

Mindmap

mindmap
  root((Uruguay Stats))
    Projects
      Presidential Approval
      National Budget
      Bus Routes
      Radio Ratings
    Tools
      Python 3.14
      matplotlib
      uv
      Jupyter
    Output
      PNG and SVG Charts
      Spanish Annotations
    Workflow
      Pre-commit Hooks
      Google Colab Badges
      Smoke Tests
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

View charts of Uruguay's presidential approval ratings from 1990 to 2026 across multiple polling sources.

USE CASE 2

Analyze how Uruguay's national budget has shifted across sectors like education, health, and defense since 1973.

USE CASE 3

Explore Montevideo bus network history broken down by operating company from 1920 to the present.

USE CASE 4

Run any project interactively in a browser via Google Colab without installing anything locally.

What is it built with?

PythonmatplotlibuvJupyter

How does it compare?

fabian-carini/uruguay-statsanikchand461/ragbucketclvv/hf-uncensored-model-popularity
Stars000
LanguageHTMLHTMLHTML
Setup difficultymoderateeasyeasy
Complexity2/52/52/5
Audiencedatadeveloperdata

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires Python 3.14+ and the uv package manager, run `uv sync` to install all dependencies.

In plain English

This repository is a collection of Python data analysis and visualization projects focused on Uruguayan statistics. Each project covers a specific topic: presidential approval ratings from 1990 to 2026, national budget spending broken down by sector from 1973 to 2024, Montevideo bus line counts by company from 1920 to 2026, and radio audience ratings in Montevideo from recent years. The output of each project is a chart saved as a PNG or SVG file, with annotations in Spanish. The project is structured so that each topic lives in its own folder with a script called plot.py, data files, and pre-generated chart images. Running a script generates charts and optionally opens them for viewing. Each script can also be converted to a Jupyter notebook, so the same analysis can be browsed interactively via Google Colab or a local notebook server without any local install. The codebase stays close to standard Python tools. Charts are produced with matplotlib using a clean grid-based style. Statistics utilities are written from scratch in a shared library rather than relying on heavy data science packages. Dependency management uses a modern tool called uv, which installs everything from a lockfile. The project requires Python 3.14 or newer. There is a pre-commit hook that automatically regenerates notebooks, checks formatting, and runs a type checker every time code is committed, keeping the notebooks in sync with the scripts. The charts use Spanish-language labels and Uruguayan number formatting. Source data comes from Uruguayan government offices, the World Bank, polling firms, and transit authority records. The README includes Google Colab badges next to each project so anyone can run the notebooks in a browser instantly.

Copy-paste prompts

Prompt 1
I have a CSV of presidential approval data with columns for date, president, and approval percentage. Help me create a matplotlib chart showing all presidents as separate colored lines with a ggplot style.
Prompt 2
I want to visualize government budget spending as a stacked percentage area chart using matplotlib. Show me how to normalize the data so each year sums to 100%.
Prompt 3
How do I structure a Python project where each sub-project has its own plot.py script that can be run standalone or converted to a Jupyter notebook using nbformat?
Prompt 4
Help me write a CLI script using argparse that accepts a list of chart variant names, runs only the selected ones, and saves both PNG and SVG outputs.
Prompt 5
Show me how to set up a pre-commit hook that automatically regenerates Jupyter notebooks from Python scripts before each commit.

Frequently asked questions

What is uruguay-stats?

A Python data visualization collection covering Uruguayan statistics: presidential approval, government budgets, bus routes, and radio ratings, with Spanish-annotated charts.

What language is uruguay-stats written in?

Mainly HTML. The stack also includes Python, matplotlib, uv.

How hard is uruguay-stats to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is uruguay-stats for?

Mainly data.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Scan in gitsafehub Deploy in gitdeployhub fabian-carini on gitmyhub

Verify against the repo before relying on details.