Welcome to our lecture repo for the course "Data & AI in Economics" at the TU Dortmund University.
As a student you are elegible to use the Github Student program including Copilot, I suggest you sign up for it here.
Since we will put everything on our server, you will not need to do this. However, if you want to work on your local machine, you will need to do the following:
Git is a version control system that allows you to track changes in your code. It is a very powerful tool that is widely used in the industry. We will use it in this course to manage the code and the data. 'git' is a command line tool. You can use it in the terminal or in the command prompt. If you are not familiar with the command line, you can use a graphical user interface (GUI) for git. There are many GUIs available, but we recommend GitHub Desktop.
To install git, follow the instructions on the official website.
To clone the repository, open the terminal or the command prompt and navigate to the directory where you want to store the repository. Then run the following command:
git clone https://github.com/firrm/DAI.gitWe will use Python as the programming language for this course. Python is a very popular language for data analysis and machine learning. It has a large and active community, and there are many libraries available for data analysis, visualization, and machine learning.
To install Python, follow the instructions on the official website.
Install pyenv
curl https://pyenv.run | bashAdd it to your bash
export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"Install needed version, eg. 3.12
pyenv install 3.12
cd /path/to/your/project
pyenv local 3.12
poetry env use $(pyenv which python)
poetry installWe will use Poetry to manage the dependencies of the project. Poetry is a tool for dependency management and packaging in Python. It allows you to declare the dependencies of your project in a simple and declarative way, and it will automatically install the dependencies for you.
To install Poetry, follow the instructions on the official website.
To install the dependencies of the project, run the following command in the terminal or the command prompt:
poetry installIf you want to use pip instead of poetry, you can run the following command in the terminal or the command prompt:
poetry export -f requirements.txt --output requirements.txt --without-hashes
pip install -r requirements.txtWe will use Jupyter Notebooks to write the code. Jupyter Notebooks are a great tool for data analysis and visualization. They allow you to write and execute code, view the results, and add text and images. You can also export the notebooks to different formats, such as HTML, PDF, or slides.
To install Jupyter Notebook, follow the instructions on the official website.