pandas_multiindex_tutorial
pandas_multiindex_tutorial copied to clipboard
An amendment in the sorting section
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