We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63d8503 commit 0a5716bCopy full SHA for 0a5716b
lectures/inflation_history.md
@@ -24,19 +24,14 @@ The `xlrd` package is used by `pandas` to perform operations on Excel files.
24
!pip install xlrd
25
```
26
27
-This lecture also requires `pandas >= 2.1.4`
+<!-- Check for pandas>=2.1.4 for Google Collab Compat -->
28
29
```{code-cell} ipython3
30
-:tags: [hide-output]
+:tags: [hide-cell]
31
from importlib.metadata import version
32
from packaging.version import Version
33
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'):
+if Version(version("pandas")) < Version('2.1.4'):
40
!pip install "pandas>=2.1.4"
41
42
0 commit comments