pandas_multiindex_tutorial icon indicating copy to clipboard operation
pandas_multiindex_tutorial copied to clipboard

An amendment in the sorting section

Open axil opened this issue 2 years ago • 0 comments

Hi, Zax!

Nice tutorial! I've found a place that could be improved:

sort2.sort_index(level='Category', inplace=True)
print("\nSort by Category, then Subcategory, then UPC EAN, then Description, then Date, then Deparment:")

What it actually does is "Sort by Category, then Date, then Deparment, then Subcategory, then UPC EAN, then Description,"

I've referenced your tutorial in my "Pandas Illustrated" guide: https://news.ycombinator.com/item?id=34550735

Best regards, Lev

axil avatar Jan 31 '23 06:01 axil