Coder Social home page Coder Social logo

a-bonus / stanfordgsb-coding-challenge Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.04 MB

This project aims to visualize the trends in the induction of players into the Hall of Fame from various countries over the years. The analysis focuses on understanding how different countries have contributed to the Hall of Fame and the evolution of these contributions through time.

Home Page: https://app.datacamp.com/workspace/w/4524f486-ea6c-41ed-adb2-6d081c042231/edit

Python 100.00%

stanfordgsb-coding-challenge's Introduction

Hall of Fame Inductees Analysis - Stanford GSB Coding Challenge

Project Overview

This project aims to visualize the trends in the induction of players into the Hall of Fame from various countries over the years. The analysis focuses on understanding how different countries have contributed to the Hall of Fame and the evolution of these contributions through time.

Data Sources

The analysis utilizes two primary data sources:

  1. HallOfFame.csv: Contains records of players inducted into the Hall of Fame.
  2. Master.csv: Provides detailed information about the players, including their birth countries.

Tools and Libraries Used

  • Python: The core programming language for the analysis.
  • Pandas: A powerful data manipulation library in Python.
  • Matplotlib: A Python plotting library for creating static, interactive, and animated visualizations.
  • Seaborn: A Python data visualization library based on matplotlib that provides a high-level interface for drawing attractive and informative statistical graphics.

Analysis Workflow

  1. Data Loading and Preprocessing:

    • Load the data from the CSV files.
    • Filter and select relevant columns for the analysis.
  2. Data Merging:

    • Combine data from both sources to create a comprehensive dataset.
  3. Data Aggregation:

    • Group data by country and induction year.
    • Calculate the count of inductees for each group.
  4. Data Transformation:

    • Fill missing combinations of country and year with zeros to maintain continuity.
    • Calculate the cumulative sum of inductees for each country over the years.
  5. Data Visualization:

    • Create a line plot to visualize the cumulative sum of Hall of Fame inductees by country over the years.
    • Employ a logarithmic scale for the y-axis to better represent disparities.

Results

The visualization provides insights into the trends and patterns of Hall of Fame inductions across different countries. It highlights the dominance of certain countries and the growth or decline in the number of inductees from various regions over time.

How to Run the Analysis

To execute this analysis:

  1. Ensure you have Python, Pandas, Matplotlib, and Seaborn installed.
  2. Clone this repository.
  3. Run the provided Python script (hof_analysis.py).

From DataCamp Portfolio

https://app.datacamp.com/workspace/w/4524f486-ea6c-41ed-adb2-6d081c042231/edit

stanfordgsb-coding-challenge's People

Contributors

a-bonus avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.