Skip to content

Commit

Permalink
hide cell and add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcky committed May 20, 2024
1 parent 63d8503 commit 0a5716b
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions lectures/inflation_history.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,14 @@ The `xlrd` package is used by `pandas` to perform operations on Excel files.
!pip install xlrd
```

This lecture also requires `pandas >= 2.1.4`
<!-- Check for pandas>=2.1.4 for Google Collab Compat -->

```{code-cell} ipython3
:tags: [hide-output]
:tags: [hide-cell]
from importlib.metadata import version
from packaging.version import Version
try:
pandas_version = version("pandas")
except:
pandas_version = '0.0.0'
if Version(pandas_version) < Version('2.1.4'):
if Version(version("pandas")) < Version('2.1.4'):
!pip install "pandas>=2.1.4"
```

Expand Down

0 comments on commit 0a5716b

Please sign in to comment.