Q. Can you sort a DataFrame with respect to multiple columns?


Answer :-

YES , df.sort_values(['a', 'b'], ascending=[True, False]) a dataframe with columns 'a' and 'b'.


Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post