Skip to content

[inflation_history] FIX: compat with Google Colab #439

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions lectures/inflation_history.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,21 @@ Let's start by installing the necessary Python packages.
The `xlrd` package is used by `pandas` to perform operations on Excel files.

```{code-cell} ipython3
:tags: [hide-output]
!pip install xlrd
```

This lecture also requires `pandas >= 2.1.4`

```{code-cell} ipython3
:tags: [hide-output]
from packaging.version import Version
import pandas as pd
if Version(pd.__version__) < Version('2.1.4'):
!pip install pandas==2.1.4
reload(pandas)
```

We can then import the Python modules we will use.

```{code-cell} ipython3
Expand Down
Loading