Skip to content

Commit 1d2633d

Browse files
authored
[inflation_history] FIX: compat with Google Colab (#439)
* [inflation_history] FIX: compat with Google Colab * hide output to tidy up
1 parent ac1d5d3 commit 1d2633d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

lectures/inflation_history.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,21 @@ Let's start by installing the necessary Python packages.
2020
The `xlrd` package is used by `pandas` to perform operations on Excel files.
2121

2222
```{code-cell} ipython3
23+
:tags: [hide-output]
2324
!pip install xlrd
2425
```
2526

27+
This lecture also requires `pandas >= 2.1.4`
28+
29+
```{code-cell} ipython3
30+
:tags: [hide-output]
31+
from packaging.version import Version
32+
import pandas as pd
33+
if Version(pd.__version__) < Version('2.1.4'):
34+
!pip install pandas==2.1.4
35+
reload(pandas)
36+
```
37+
2638
We can then import the Python modules we will use.
2739

2840
```{code-cell} ipython3

0 commit comments

Comments
 (0)