Skip to content

Commit

Permalink
Merge pull request #10 from sylvainipp/add_new_compat
Browse files Browse the repository at this point in the history
Add new compat to python 3.11
  • Loading branch information
benjello authored Oct 11, 2024
2 parents 6af2557 + 8fc2a45 commit a774264
Show file tree
Hide file tree
Showing 10 changed files with 3,488 additions and 3,052 deletions.
42 changes: 25 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,39 +1,40 @@
# PPD Micro-Simulations and Public Policies
# PPD/APE Micro-Simulations and Public Policies

My mail adress : [email protected]

Actions students have to take

* [Before first session](#before-first-session)
* [Before second session](#before-second-session)
* [Before first session (2024/02/01)](#before-first-session)
* [Before second session (2024/02/15)](#before-second-session)

## Before first session

### Install the software

You have to bring your own laptop computer and install the python software.

For the tutorial, you will need to install the Python langage together with some specific packages. You need to have a functional internet connection.
For the tutorial, you will need to install the Python language together with some specific packages. You need to have a functional internet connection.

#### Python

You can install a minimal Python or use Anaconda

##### Minimal install

Start by downloading Python 3.9 from [this page](https://www.python.org/downloads/).
Start by downloading Python 3.11 from [this page](https://www.python.org/downloads/).

*Be careful to download the right version, i.e at least a Python 3 version !*

Install the software.

##### Anaconda

Download Anaconda for Python 3.9 from [this page](https://www.anaconda.com/products/individual) and install the software.
Download Anaconda for Python 3.11 from [this page](https://www.anaconda.com/products/individual) and install the software.

Create an environment for this class

```shell
conda create --name ppd python=3.9
conda create --name ppd python=3.11
```

#### Install additional packages.
Expand Down Expand Up @@ -78,18 +79,19 @@ python -m pip install --index-url=http://pypi.python.org/simple/ --trusted-host

#### Worst case scenario

Nothing works, try the launch binder badges whenever the appear below.
Nothing works, try the launch binder badges whenever it appears below.


### Take the Python crash course (*required*)

#### Get familiar with the notebook

It is require to read [this excellent introduction to the notebook](http://nbviewer.jupyter.org/github/ipython-books/minibook-2nd-code/blob/master/chapter1/13-nbui.ipynb).
It is required to read [this excellent introduction to the notebook](http://nbviewer.jupyter.org/github/ipython-books/minibook-2nd-code/blob/master/chapter1/13-nbui.ipynb).

#### Learn some Python

It is require to read and try to execute [this introductory notebook to the Python langage](http://nbviewer.jupyter.org/github/ipython-books/minibook-2nd-code/blob/master/chapter1/14-python.ipynb). [![Binder](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/benjello/ppd-micro-simulations-and-public-policies/master?filepath=notebooks%2F14-python.ipynb)
It is required to read and try to execute [this introductory notebook to the Python langage](http://nbviewer.jupyter.org/github/ipython-books/minibook-2nd-code/blob/master/chapter1/14-python.ipynb). [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/sylvainipp/pse-micro-simulations-and-public-policies.git/master?labpath=notebooks%2F14-python.ipynb)


You can also have a look at one of these Python tutorials:

Expand All @@ -101,13 +103,17 @@ You can also have a look at one of these Python tutorials:

### Load the following notebooks for the first session

- [Python crash course with exercises](./notebooks/python_crash_course_student.ipynb). [![Binder](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/benjello/ppd-micro-simulations-and-public-policies/master?filepath=notebooks%2Fpython_crash_course_student.ipynb)
- [Python crash course with exercises](./notebooks/python_crash_course_student.ipynb). [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/sylvainipp/pse-micro-simulations-and-public-policies.git/master?labpath=notebooks%2Fpython_crash_course_student.ipynb)


- [Explore the Senegalese tax and benefits system](./notebooks/Senegal-student.ipynb). [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/sylvainipp/pse-micro-simulations-and-public-policies.git/master?labpath=notebooks%2FSenegal-student.ipynb)

- [Explore the Senegalese tax and benefits system](./notebooks/Senegal-student.ipynb). [![Binder](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/benjello/ppd-micro-simulations-and-public-policies/master?filepath=notebooks%2FSenegal-student.ipynb)

## Before second session

- [Complete the exploration of the Senegalese tax and benefits system by doing the exercises](./notebooks/Senegal-student-2.ipynb). [![Binder](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/benjello/ppd-micro-simulations-and-public-policies/master?filepath=notebooks%2FSenegal-student-2.ipynb)
- [Complete the exploration of the Senegalese tax and benefits system by coding a loop for the gain of having one more child depending on the income for different number of children](./notebooks/Senegal-student.ipynb). [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/sylvainipp/pse-micro-simulations-and-public-policies.git/master?labpath=notebooks%2FSenegal-student.ipynb)

- [You can look at the correction of the first part of the notebook (Warning, I included the last loop, try not to use it while searching !)](./notebooks/Senegal-exercices-solutions1.ipynb).

- Install the survey capabilities of openfisca-senegal:
```
Expand All @@ -116,13 +122,15 @@ pip install openfisca-senegal[survey]

- We will manipulate [dataframes](http://pandas.pydata.org/): learn how to use them by having a look at this [introduction](http://pandas.pydata.org/pandas-docs/stable/10min.html)

- Download the [the second session notebook](./notebooks/Fake-data-Senegal.ipynb). [![Binder](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/benjello/ppd-micro-simulations-and-public-policies/master?filepath=notebooks%2FFake-data-Senegal.ipynb)
- Download the [the second session notebook](./notebooks/Fake-data-Senegal.ipynb). [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/sylvainipp/pse-micro-simulations-and-public-policies.git/master?labpath=notebooks%2FFake-data-Senegal.ipynb)


<!--

## After the second session:

You now have access to the complete notebooks with exercise solutions
- Download the [the first session notebook with exercises solutions](./notebooks/Senegal-exercices-solutions.ipynb). [![Binder](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/benjello/ppd-micro-simulations-and-public-policies/master?filepath=notebooks%2FSenegal-exercices-solutions.ipynb)
- Download the [the first session notebook with exercises solutions](./notebooks/Senegal-exercices-solutions.ipynb). [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/sylvainipp/pse-micro-simulations-and-public-policies.git/master?labpath=notebooks%2FSenegal-exercices-solutions.ipynb)


- Download the [the second session notebook with exercises solutions](./notebooks/Fake-data-Senegal-Correction.ipynb). [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/sylvainipp/pse-micro-simulations-and-public-policies/HEAD?labpath=notebooks%2FFake-data-Senegal-Correction.ipynb)

- Download the [the second session notebook with exercises solutions](./notebooks/Fake-data-Senegal.ipynb). [![Binder](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/benjello/ppd-micro-simulations-and-public-policies/master?filepath=notebooks%2FFake-data-Senegal.ipynb) -->
Loading

0 comments on commit a774264

Please sign in to comment.