diff --git a/doc/source/user_guide/style.ipynb b/doc/source/user_guide/style.ipynb index 43021fcbc13fb..fc0ba116dcb3f 100644 --- a/doc/source/user_guide/style.ipynb +++ b/doc/source/user_guide/style.ipynb @@ -76,7 +76,7 @@ "source": [ "# Hidden cell to just create the below example: code is covered throughout the guide.\n", "s = df.style\\\n", - " .hide_columns([('Random', 'Tumour'), ('Random', 'Non-Tumour')])\\\n", + " .hide([('Random', 'Tumour'), ('Random', 'Non-Tumour')], axis='columns')\\\n", " .format('{:.0f}')\\\n", " .set_table_styles([{\n", " 'selector': '',\n", @@ -1339,7 +1339,7 @@ " for series in [test1,test2,test3, test4]:\n", " s = series.copy()\n", " s.name=''\n", - " row += \"{}\".format(s.to_frame().style.hide_index().bar(align=align, \n", + " row += \"{}\".format(s.to_frame().style.hide(axis='index').bar(align=align, \n", " color=['#d65f5f', '#5fba7d'], \n", " width=100).to_html()) #testn['width']\n", " row += ''\n",