Skip to content

Commit 6c005b2

Browse files
authored
DOCS: use non-deprecated method in doc examples (#44491)
1 parent 700be61 commit 6c005b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/source/user_guide/style.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@
242242
"metadata": {},
243243
"outputs": [],
244244
"source": [
245-
"s = df.style.format('{:.0f}').hide_columns([('Random', 'Tumour'), ('Random', 'Non-Tumour')])\n",
245+
"s = df.style.format('{:.0f}').hide([('Random', 'Tumour'), ('Random', 'Non-Tumour')], axis=\"columns\")\n",
246246
"s"
247247
]
248248
},
@@ -1384,7 +1384,7 @@
13841384
" .applymap(style_negative, props='color:red;')\\\n",
13851385
" .applymap(lambda v: 'opacity: 20%;' if (v < 0.3) and (v > -0.3) else None)\\\n",
13861386
" .set_table_styles([{\"selector\": \"th\", \"props\": \"color: blue;\"}])\\\n",
1387-
" .hide_index()\n",
1387+
" .hide(axis=\"index\")\n",
13881388
"style1"
13891389
]
13901390
},

0 commit comments

Comments
 (0)