I'm trying to figure out how to implement how excel sorts by levels if wanted in python with pandas (i.e. it sorts by column A, then by column B, then column C, etc.). Anyone have any advice with this?
Thank you. image of example
I'm trying to figure out how to implement how excel sorts by levels if wanted in python with pandas (i.e. it sorts by column A, then by column B, then column C, etc.). Anyone have any advice with this?
Thank you. image of example
df.sort_values(['column A','column B','column C'], ascending = True)