Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

sort by two columns in pandas

df.sort_values(['a', 'b'], ascending=[True, False])
 
PREVIOUS NEXT
Tagged: #sort #columns #pandas
ADD COMMENT
Topic
Name
4+9 =