This assignment uses life expectancy in Europe grouped by Country (or other, like group of countries), Age, Sex, and Time. But the data format makes it hard to use. The task consists into cleaning the data and applying the concepts you've learned in the previous modules.
Before installing, make sure your pip
is up to date.
pip --version
Prior to the introduction of pyproject.toml
-based builds (in PEP 517 and PEP 518), pip had only supported installing packages using setup.py files that were built using setuptools
. But in version 21.3, pip added support for performing editable installs of packages that use pyproject.toml
. This means that you can use pip to install packages described in the pyproject.toml
.
To update pip, run:
pip install --upgrade pip
Now you're ready to go!
- Clone this repo.
- Copy
assignments
folder into a separate projectmv -r nos-lp-foundations/assignments assignments
. - Move into the assignments folder (
cd assignments
) and start a new repo (git init
). - Create a virtual environment with
python -m venv .venv
.Note for Anaconda users: We would prefer if you exit the automatic conda environments and tried using the steps above, as they are the canonical Python way of creating virtual environments. However, we realize working that way might be tricky for Anaconda users since Anaconda usually changes the configurations of your machine. If you are having too many problems getting started, then feel free to use the "conda way" of handling environments. I.e.: create a virtual environment with
conda create --name foundations
. - Activate the virtual environment with
source .venv/bin/activate
or.venv\Scripts\activate
on Windows.Note for Anaconda users: Same as above, if you are having too many problems getting started, then feel free to activate the environment with
conda activate foundations
instead. - Install its dependencies on editable mode with
pip install -e '.[dev]'
.
Open the README.md
file inside each assignment and follow the instructions.
Note: Remember that all commands inside the Readme files assume you are in the root of the project.