pydata/pandas — comment on commit 665af950e88c06a639f1ac758313a714c244a619
File: pandas/core/frame.py line 3446
By wesm:

MultiIndex has a method `get_level_number` that ought to get used here