Skip to content

cursed027/India-Census-Map-Explorer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

9 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation


India Census Map Explorer

A Streamlit + Plotly Interactive Dashboard for District-Level Census 2011 Analysis


๐Ÿ“Œ Overview

This project is a minimal, interactive data exploration tool built using Streamlit, Plotly, and Pandas. It allows users to visualize and compare key socio-economic indicators of Indian districts using the Census 2011 dataset.

The app provides:

  • ๐ŸŽฏ District-level interactive map
  • ๐Ÿงฎ Summary metrics (literacy, sex ratio, penetration rates)
  • ๐Ÿ“Š Top-districts bar chart
  • ๐Ÿ”Ž Clean filter/search interface
  • ๐Ÿ“„ Data preview table

๐Ÿš€ Features

๐Ÿ—บ๏ธ Interactive District Map

  • Plotly Mapbox scatter map
  • Adjustable point size and color based on census metrics
  • Hover tooltips showing selected district details
  • Beautiful color scales (Viridis, Plasma)

๐ŸŽ›๏ธ Filters & Options

  • View all India or filter by state
  • Select primary (size) and secondary (color) metrics
  • Search any district by name
  • Optional log-scale coloring

๐Ÿ“ˆ Top 10 Districts Bar Chart

Shows the highest values for the chosen metric (descending order). Helpful for identifying best-performing districts.

๐Ÿ“‘ Data Preview

Displays the filtered dataset Useful for quick verification and exploring exact numeric values.

๐Ÿ”ข Automatically Computed Metrics

  • Sex Ratio (Females per 1000 Males)
  • Internet Penetration % (computed if missing)

๐Ÿ“‚ Project Structure

๐Ÿ“ mini_proj/
โ”‚โ”€โ”€ app.py
โ”‚โ”€โ”€ README.md
โ”‚โ”€โ”€ final_india.csv

๐Ÿง  Dataset Description

This app uses a cleaned version of District-Level India Census 2011 containing:

Demographics

  • Population, Male, Female
  • SC / ST population

Literacy

  • Literate population (Male/Female)
  • Literacy Rate (%)

Household & Amenities

  • Electricity, Internet, Computer
  • LPG/PNG availability
  • Bathroom / Toilet availability

Assets

  • Bicycle, Car, Two-Wheeler
  • Phone, TV

Age Groups

  • 0โ€“29
  • 30โ€“49
  • 50+

Geolocation

  • Latitude
  • Longitude

Derived Metrics

  • Sex_Ratio
  • Internet_Penetration

๐Ÿ› ๏ธ Installation & Setup

1๏ธโƒฃ Clone Repository

git clone https://github.com/cursed027/India-Census-Map-Explorer/
cd india-census-map-explorer

2๏ธโƒฃ Install Required Packages

pip install streamlit pandas numpy plotly

3๏ธโƒฃ Run the App

streamlit run app.py

4๏ธโƒฃ Access in Browser

Streamlit will open automatically, or visit:

http://localhost:8501

๐Ÿ–ฅ๏ธ How the App Works

1. Load Dataset

The CSV is automatically loaded from:

final_india.csv

2. Sidebar Options

Choose:

  • State
  • Primary metric (point size)
  • Secondary metric (color)
  • Log-scale option
  • District search

3. Map Rendering

Each district is shown as a point on the India map using:

  • Size โ†’ selected primary metric
  • Color โ†’ selected secondary metric

4. Insights

  • Key performance indicators (KPIs)
  • Top 10 districts bar chart
  • Filtered data preview

๐Ÿ“Š Screenshots

Map View

Bar Chart


๐Ÿงฐ Tech Stack

Component Technology
Dashboard Streamlit
Plots Plotly Express
Data Processing Pandas, NumPy
Map Tiles Mapbox (OpenStreetMap style)

๐Ÿ”ฎ Future Improvements

  • Add choropleth maps using district GeoJSON
  • Support multiple census years
  • Add download/export options
  • Add scatter comparison (primary vs secondary)
  • Dark mode UI

๐Ÿ“œ License

MIT License โ€” you are free to use and modify the code.


๐Ÿ‘จโ€๐Ÿ’ป Author

Cursed027


About

A Streamlit-based interactive dashboard for exploring district-level Census 2011 socio-economic indicators across India.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors