Skip to content

Commit 094b2c0

Browse files
authored
DOC: Table Visualization gets Error for cell #49874 (#49918)
* DOC: Table Visualization gets Error for cell #49874 * DOC: Replace deprecated method hide_index()
1 parent 15e6abd commit 094b2c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/source/user_guide/style.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
"source": [
7777
"# Hidden cell to just create the below example: code is covered throughout the guide.\n",
7878
"s = df.style\\\n",
79-
" .hide_columns([('Random', 'Tumour'), ('Random', 'Non-Tumour')])\\\n",
79+
" .hide([('Random', 'Tumour'), ('Random', 'Non-Tumour')], axis='columns')\\\n",
8080
" .format('{:.0f}')\\\n",
8181
" .set_table_styles([{\n",
8282
" 'selector': '',\n",
@@ -1339,7 +1339,7 @@
13391339
" for series in [test1,test2,test3, test4]:\n",
13401340
" s = series.copy()\n",
13411341
" s.name=''\n",
1342-
" row += \"<td>{}</td>\".format(s.to_frame().style.hide_index().bar(align=align, \n",
1342+
" row += \"<td>{}</td>\".format(s.to_frame().style.hide(axis='index').bar(align=align, \n",
13431343
" color=['#d65f5f', '#5fba7d'], \n",
13441344
" width=100).to_html()) #testn['width']\n",
13451345
" row += '</tr>'\n",

0 commit comments

Comments
 (0)