An open API service indexing awesome lists of open source software.

https://github.com/mrarvind90/fcc-demographic-data-analyzer

A Python program to analyze data from a 1994 census database from University of California, School of Information and Computer Science.
https://github.com/mrarvind90/fcc-demographic-data-analyzer

black freecodecamp freecodecamp-challenge freecodecamp-project pandas pandas-dataframe python python-3 python3 unittest unittests

Last synced: 2 months ago
JSON representation

A Python program to analyze data from a 1994 census database from University of California, School of Information and Computer Science.

Awesome Lists containing this project

README

        

[![freeCodeCamp Social Banner](https://s3.amazonaws.com/freecodecamp/wide-social-banner.png)](https://www.freecodecamp.org/)


Python 3
Pandas

# Demographic Data Analyzer
License: MIT
Code Style: black

A Python program to analyze data from a 1994 census database from University of California, School of Information and Computer Science.

## Technologies Used
- pandas

## Features
Provides an answer for the following questions based on the 1994 census data
- How many people of each race are represented in this dataset? This should be a Pandas series with race names as the index labels. (race column)
- What is the average age of men?
- What is the percentage of people who have a Bachelor's degree?
- What percentage of people with advanced education (Bachelors, Masters, or Doctorate) make more than 50K?
- What percentage of people without advanced education make more than 50K?
- What is the minimum number of hours a person works per week?
- What percentage of the people who work the minimum number of hours per week have a salary of more than 50K?
- What country has the highest percentage of people that earn >50K and what is that percentage?
- Identify the most popular occupation for those who earn >50K in India.

## Prerequisites
Before you begin, ensure you have met the following requirements:

- Python 3.10 or higher installed on your system. You can download Python from [python.org](https://www.python.org/downloads/).
- Poetry 1.6.1 installed on your system. You can install Poetry from [python-poetry.org](https://python-poetry.org/docs/#installation)

## Installation and Setup
Follow these steps to install and set up Poetry for this project:

1. **Install Poetry**:
Poetry is a Python package manager that simplifies dependency management and virtual environments. You can install Poetry by following their guide [here](https://python-poetry.org/docs/#installing-with-the-official-installer).
2. Clone the repository
```shell
git clone [email protected]:mrarvind90/fcc-demographic-data-analyzer.git
```
3. Change into the Project Directory
```shell
cd fcc-demographic-data-analyzer
```
4. Install Dependencies:
```shell
poetry install
```
5. Run the Project:
```shell
poetry run python3 main.py
```

## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

## Code Style
We follow the black code style for this project. You can format your code using:
```shell
black .
```