This repository contains the source code for the analysis of the soccer division data set. In this readme we provide information on how to setup the project, on how the code is structured and how we distributed and organized the different task in the group project.
In order to run the analysis, you need to install the microeconomics package and copy the data_group5.csv
file into
the data
folder.
To install the package, you will first need to install the dependency manager poetry
, if
you haven't already.
On linux, osx:
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
On windows powershell:
(Invoke-WebRequest -Uri https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py -UseBasicParsing).Content | python -
After that, run the following commands from the project root directory:
cd ./microeconometrics
poetry install
Copy the data_group5.csv
file in the data folder and you are good to go.
The project has
The microeconomics package folder contains two modules:
- descriptives: contains functions to compute descriptive statistics
- estimators: contains all the estimators
In the analysis.py script, we assemble all the functions to perform the final analysis on the data.
In the tests folder, there are unit tests for the package functions and classes. To run the tests, try the following command in your shell:
poetry run pytest