This repository contains the code and data for the second assignment of the Accounting Reading Group. It is implemented in Python and uses the pandas, openpyxl and jupyter libraries.
Assuming that you have Python installed, this should be relatively straightforward.
- It is recommend to create a virtual environment for the project. Please do this and activate the virtual environment.
python3 -m venv venv
source venv/bin/activate # On Linux and Mac OS
# venv\Scripts\activate.bat # If you are using Windows - command prompt
# venv/Script/Activate.ps1 # If you are using Windows - PowerShell and have allowed script execution-
Install the required packages by running
pip install -r requirements.txtin the terminal. This will install the required packages for the project in the virtual environment. -
Download the
wscp_static.txtandwscp_panel.xlsxfiles provided on moodle and place them in thedata/external/directory (create theexternaldirectory if it does not exist). We do not provide these files in the repository because they are proprietary data and this repository is intended to be public. -
If you have make installed, you can run
make allin the terminal. This will create the output files in theoutputdirectory. Otherwise, you can run the following commands in the terminal:
python code/python/do_analysis.py
quarto render doc/paper.qmd
mv doc/paper.pdf output
rm -f doc/paper.ttt doc/paper.fff
quarto render doc/presentation.qmd
mv doc/presentation.pdf output
rm -f doc/presentation.ttt doc/presentation.fffThis will create both the paper and the presentation in the output directory.