CoolFace
Apppublic

besimabdulai/albanian-map

sourceHugging Faceupdated 1y agoView on Hugging Face
1likes
App README

๐ŸŒ Chance of Being Born Albanian โ€” 2025 (Streamlit App)

An interactive Streamlit web app visualizing the estimated likelihood of being born Albanian (to Albanian parents) by country โ€” using approximate 2025 population and ethnic proportion data.

๐Ÿ”— Live Demo: Hugging Face Space


๐Ÿ“– Overview

This app shows how common it is to be ethnically Albanian depending on where youโ€™re born โ€” from near certainty in Albania and Kosovo to rarity across the globe.

It includes:

  • โ€”๐ŸŒ Interactive world map (Plotly choropleth)
  • โ€”๐Ÿ“Š Ranked bar chart by country
  • โ€”๐Ÿ’พ Optional PNG export
  • โ€”๐Ÿ“‚ Custom CSV upload support
  • โ€”๐Ÿงญ Color themes & Europe zoom

Built with Streamlit and Plotly for fast, elegant visualization directly in your browser.


๐Ÿงฎ Data Summary

RankCountryEst. % AlbanianApprox. Chance
1๐Ÿ‡ฆ๐Ÿ‡ฑ Albania~95%1 in 1.05
2๐Ÿ‡ฝ๐Ÿ‡ฐ Kosovo~93%1 in 1.1
3๐Ÿ‡ฒ๐Ÿ‡ฐ North Macedonia~27%1 in 3.7
4๐Ÿ‡ฒ๐Ÿ‡ช Montenegro~8%1 in 12.5
5๐Ÿ‡จ๐Ÿ‡ญ Switzerland~4%1 in 25
6โ€“20Other countries0.8% โ€“ 0.001%1 in 125โ€“100,000

๐ŸŒ Global average: ~0.1% โ€” roughly 1 in 1,000 people worldwide.


๐Ÿงฉ Features

โœ… Interactive world map (Plotly) โœ… Ranked bar chart visualization โœ… Sidebar controls for colors & zoom โœ… CSV upload for custom data โœ… PNG export for social media posts โœ… Works directly on Hugging Face Spaces


๐Ÿ› ๏ธ Tech Stack

LibraryPurpose
StreamlitApp framework
PlotlyInteractive charts
PandasData management
KaleidoPNG export engine

โš™๏ธ Run Locally

bash
git clone https://huggingface.co/spaces/YOUR-USERNAME/albanian-map
cd albanian-map
pip install -r requirements.txt
streamlit run app.py