Jääkiekko-otteluiden tilastodatan tallentaminen, varastointi ja hyödyntäminen
Makkonen, Pekka (2023)
Makkonen, Pekka
2023
All rights reserved. This publication is copyrighted. You may download, display and print it for Your own personal use. Commercial use is prohibited.
Julkaisun pysyvä osoite on
https://urn.fi/URN:NBN:fi:amk-2023061423898
https://urn.fi/URN:NBN:fi:amk-2023061423898
Tiivistelmä
Opinnäytetyön tavoitteena oli toteuttaa Python-sovellus, joka kerää jääkiekko-otteluiden tilastodataa avoimesta rajapinnasta. Datalähteenä työssä käytettiin NHL:n tilastorajapintaa.
Pääpaino työssä oli otteluista kerättävän raakadatan käsittely- ja tallentamisprosessissa sekä datan hakemisessa tietokannasta esimerkiksi raportointia varten. Sovellus hakee datan ja käsittelee sen relaatiotietokantaan tallennettavaan muotoon. Sovelluksen taustalla on MySQL-tietokanta, johon data tallennetaan.
Sovellus toimii suunnitellusti ja data tallentuu tietokantaan oikein. Työssä kerättyä dataa voitaisiin hyödyntää esimerkiksi joukkueiden ja pelaajien suoritusten arvioinnissa, vedonlyönnissä sekä journalismin eri osa-alueilla. Opinnäytetyön nähdään myös antavan hyvän pohjan laajemmalle tutkimukselle datan ja analytiikan hyödyntämisestä jääkiekossa. The objective of the thesis was to implement a Python application that collects statistical data of ice hockey games from open data source. The data source used was NHL Stats API.
The main emphasis of the work was in the storage process of raw data of games and in retrieving data from the database, for example for reporting. The application acquires data and is processing it into relational format. The data is stored into a MySQL database.
The application works as planned and the data is stored correctly in the database. The data could be utilized for example in the evaluation of the performances of teams and players, in gambling or in different sectors of journalism. The thesis also provides a basis for more extensive research on the use of data and analytics in ice hockey.
Pääpaino työssä oli otteluista kerättävän raakadatan käsittely- ja tallentamisprosessissa sekä datan hakemisessa tietokannasta esimerkiksi raportointia varten. Sovellus hakee datan ja käsittelee sen relaatiotietokantaan tallennettavaan muotoon. Sovelluksen taustalla on MySQL-tietokanta, johon data tallennetaan.
Sovellus toimii suunnitellusti ja data tallentuu tietokantaan oikein. Työssä kerättyä dataa voitaisiin hyödyntää esimerkiksi joukkueiden ja pelaajien suoritusten arvioinnissa, vedonlyönnissä sekä journalismin eri osa-alueilla. Opinnäytetyön nähdään myös antavan hyvän pohjan laajemmalle tutkimukselle datan ja analytiikan hyödyntämisestä jääkiekossa.
The main emphasis of the work was in the storage process of raw data of games and in retrieving data from the database, for example for reporting. The application acquires data and is processing it into relational format. The data is stored into a MySQL database.
The application works as planned and the data is stored correctly in the database. The data could be utilized for example in the evaluation of the performances of teams and players, in gambling or in different sectors of journalism. The thesis also provides a basis for more extensive research on the use of data and analytics in ice hockey.