diff --git a/doc/source/user_guide/style.ipynb b/doc/source/user_guide/style.ipynb index 3a991b5338c38..62e44d73d9f1c 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" ] }, @@ -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" ] },