From fd223ca177b4a222d26e05fbf07030cc1626e7f0 Mon Sep 17 00:00:00 2001 From: Revan <116514311+Revanchist317@users.noreply.github.com> Date: Tue, 16 Apr 2024 18:38:11 +0200 Subject: [PATCH] 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 --- notebooks_v1/03.05-Hierarchical-Indexing.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notebooks_v1/03.05-Hierarchical-Indexing.ipynb b/notebooks_v1/03.05-Hierarchical-Indexing.ipynb index 1122989bb..077d2f148 100644 --- a/notebooks_v1/03.05-Hierarchical-Indexing.ipynb +++ b/notebooks_v1/03.05-Hierarchical-Indexing.ipynb @@ -911,7 +911,7 @@ "data": { "text/plain": [ "MultiIndex(levels=[['a', 'b'], [1, 2]],\n", - " labels=[[0, 0, 1, 1], [0, 1, 0, 1]])" + " codes=[[0, 0, 1, 1], [0, 1, 0, 1]])" ] }, "execution_count": 17,