Assume I have a Pandas Dataframe as such:
Col_A Col_B Col_C
501 A 2
501 G 19
501 B 10
501 Z 32
502 B 7
502 J 34
502 M 8
502 S 90
I am looking for a way to apply multiple sorts to one dataframe. For example, Where Col_A = 501, Col_B & Col_C would be ascending. And where Col_A = 502, Col_B & Col_C would be descending as such:
Col_A Col_B Col_C
501 A 2
501 B 10
501 G 19
501 Z 32
502 S 90
502 M 34
502 J 8
502 B 7
Any help would be much appreciated!