Coder Social home page Coder Social logo

football_weather_project's Introduction

Executive Summary

The goal of this project was to determine certain performance characteristics of division 1 and 2 German football teams over the 2011 season. The questions to be answered were as follows:

  1. What were the total number of goals scored by each team during the season?
  2. How many wins did each team earn during the season?
  3. What was each teams' win percentage on match days where the it was raining?

To begin, the kaggle database was imported to Python using SQL queries and then turned into pandas dataframes. All non-German teams were removed from the dataframe. A series of pivots were then used to create a team_data dataframe that contains each teams total goals, wins, losses and draws for the season. A bar plot was then created containing the wins, losses and draws of each team.

A connection was made to the DarkSky API from which the weather data was obtained for each match in the 2011 season. All matches where it did not rain were removed from the dataframe, and a pivot was used to total each teams' wins, losses and draws for matches where it was raining. From this, a percentage win during rainy games was calculated for each team. These values were then added as a new column in the team_data dataframe.

The team_data dataframe was then converted to a dictionary to be stored in a collection on a mongodb server. The bar plot containing wins, losses and draws for each team was converted into a bytes string and also added to the mongo collection.

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.