Skip to content

Commit 0a5716b

Browse files
committed
hide cell and add comment
1 parent 63d8503 commit 0a5716b

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

lectures/inflation_history.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,14 @@ The `xlrd` package is used by `pandas` to perform operations on Excel files.
2424
!pip install xlrd
2525
```
2626

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

2929
```{code-cell} ipython3
30-
:tags: [hide-output]
30+
:tags: [hide-cell]
3131
from importlib.metadata import version
3232
from packaging.version import Version
3333
34-
try:
35-
pandas_version = version("pandas")
36-
except:
37-
pandas_version = '0.0.0'
38-
39-
if Version(pandas_version) < Version('2.1.4'):
34+
if Version(version("pandas")) < Version('2.1.4'):
4035
!pip install "pandas>=2.1.4"
4136
```
4237

0 commit comments

Comments
 (0)