Skip to content

Commit fd223ca

Browse files
Update 03.05-Hierarchical-Indexing.ipynb
The MultiIndex constructor takes "codes" not "labels" as its input when doing the internal encoding. Tested on pandas 2.2.2
1 parent d662314 commit fd223ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notebooks_v1/03.05-Hierarchical-Indexing.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -911,7 +911,7 @@
911911
"data": {
912912
"text/plain": [
913913
"MultiIndex(levels=[['a', 'b'], [1, 2]],\n",
914-
" labels=[[0, 0, 1, 1], [0, 1, 0, 1]])"
914+
" codes=[[0, 0, 1, 1], [0, 1, 0, 1]])"
915915
]
916916
},
917917
"execution_count": 17,

0 commit comments

Comments
 (0)