PythonDataScienceHandbook icon indicating copy to clipboard operation
PythonDataScienceHandbook copied to clipboard

Update 03.05-Hierarchical-Indexing.ipynb

Open Revanchist317 opened this issue 1 year ago • 0 comments

I think I discovered a small bug when running cell 17. The MultiIndex constructor takes "codes" not "labels" as its input when doing the internal encoding. Tested on pandas 2.2.2.

The original error was: TypeError: new() got an unexpected keyword argument 'labels'

Revanchist317 avatar Apr 16 '24 16:04 Revanchist317