Skip to content

Repository for a Census data visualization demo project using July 2024 Current Population Survey public data from the Census ftp server.

License

Notifications You must be signed in to change notification settings

DigitalHerencia/CensusDataVisualizationDemo

Repository files navigation

US Census CPS Data Visualization

Streamlit Python GitHub GPLv3 License FTP Server US Census Bureau Current Population Survey

Description

This project visualizes data from the Current Population Survey (CPS) using Streamlit, Altair, and Plotly. The visualizations provide insights into employment status, education level, and age distribution across different demographics in the United States.

Features

  • Age Distribution by Employment Status
    Age Distribution by Employment Status

  • Education Level by Sex

Education Level by Sex


  • Employment Status by Age and Sex
    Employment Status by Age and Sex

Installation

  1. Clone the repository:

    git clone https://github.com/digitalherencia/CensusDataVisualizationDemo.git
    cd CensusDataVisualizationDemo
  2. Set up the virtual environment:

    python3 -m venv .venv
    source .venv/bin/activate  # On Windows use: .venv\Scripts\activate
    pip install -r scripts/requirements.txt
  3. Run the application:

    streamlit run scripts/app.py

Usage

The app fetches the latest CPS data, preprocesses it, and generates interactive visualizations. Open the app in your browser and explore the various charts and graphs to gain insights into the employment and education statistics.

Visualizations

1. Age Distribution by Employment Status

This Plotly box plot shows the distribution of ages for different employment statuses. Hover over the boxes to see detailed statistics.

2. Education Level by Sex

This Altair chart shows the education level distribution by sex. Hover over the bars to see details.

3. Employment Status by Age and Sex (Heatmap)

This heatmap shows the density of different age groups within each employment status, split by sex.

License

This project is licensed under the GPLv3.

Contact

For any inquiries or feedback, please contact digitalherencia@outlook.com.

About

Repository for a Census data visualization demo project using July 2024 Current Population Survey public data from the Census ftp server.

Topics

Resources

License

Stars

Watchers

Forks

Languages