Skip to content

Commit

Permalink
[inflation_history] FIX: compat with Google Colab (#439)
Browse files Browse the repository at this point in the history
* [inflation_history] FIX: compat with Google Colab

* hide output to tidy up
  • Loading branch information
mmcky authored May 9, 2024
1 parent ac1d5d3 commit 1d2633d
Showing 1 changed file with 12 additions and 0 deletions.
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

0 comments on commit 1d2633d

Please sign in to comment.