From 0a5716baebf945864bc7a57e0192ac6015cc23af Mon Sep 17 00:00:00 2001 From: mmcky Date: Mon, 20 May 2024 12:10:57 +1000 Subject: [PATCH] hide cell and add comment --- lectures/inflation_history.md | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/lectures/inflation_history.md b/lectures/inflation_history.md index 57da745f..afb36a85 100644 --- a/lectures/inflation_history.md +++ b/lectures/inflation_history.md @@ -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` + ```{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" ```