From 582bdcac76d6563dd6c734b12304912316dd4ae3 Mon Sep 17 00:00:00 2001 From: "JHM Darbyshire (iMac)" Date: Tue, 16 Nov 2021 21:07:55 +0100 Subject: [PATCH 1/2] use non-deprecated method in docs --- doc/source/user_guide/style.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/user_guide/style.ipynb b/doc/source/user_guide/style.ipynb index 3a991b5338c38..1b9185f370bab 100644 --- a/doc/source/user_guide/style.ipynb +++ b/doc/source/user_guide/style.ipynb @@ -242,7 +242,7 @@ "metadata": {}, "outputs": [], "source": [ - "s = df.style.format('{:.0f}').hide_columns([('Random', 'Tumour'), ('Random', 'Non-Tumour')])\n", + "s = df.style.format('{:.0f}').hide([('Random', 'Tumour'), ('Random', 'Non-Tumour')], axis=\"columns\")\n", "s" ] }, From f33a77a78a8bc1179d768f15f4ec83ff70814c6a Mon Sep 17 00:00:00 2001 From: "JHM Darbyshire (iMac)" Date: Tue, 16 Nov 2021 21:11:15 +0100 Subject: [PATCH 2/2] use non-deprecated method in docs --- doc/source/user_guide/style.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/user_guide/style.ipynb b/doc/source/user_guide/style.ipynb index 1b9185f370bab..62e44d73d9f1c 100644 --- a/doc/source/user_guide/style.ipynb +++ b/doc/source/user_guide/style.ipynb @@ -1384,7 +1384,7 @@ " .applymap(style_negative, props='color:red;')\\\n", " .applymap(lambda v: 'opacity: 20%;' if (v < 0.3) and (v > -0.3) else None)\\\n", " .set_table_styles([{\"selector\": \"th\", \"props\": \"color: blue;\"}])\\\n", - " .hide_index()\n", + " .hide(axis=\"index\")\n", "style1" ] },