Skip to content

Commit 8948fff

Browse files
committed
[inflation_history] FIX: compat with Google Colab
1 parent 3c5585a commit 8948fff

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lectures/inflation_history.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,16 @@ The `xlrd` package is used by `pandas` to perform operations on Excel files.
2323
!pip install xlrd
2424
```
2525

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

2838
```{code-cell} ipython3

0 commit comments

Comments
 (0)