sorting rows and columns in pandas

df.sort_values(by="ColumnName", axis=0, ascending=False, inplace=False, kind='quicksort')
#axis 0 is rows and axis 1 is columns. For axis 0 by needs to contain column name  

Here is what the above code is Doing:
1. Sort the dataframe by the column name “ColumnName” in descending order.
2. The default value for the “axis” parameter is 0, which means that the sorting will be done on the rows.
3. The default value for the “ascending” parameter is True, which means that the sorting will be done in ascending order.
4. The default value for the “inplace” parameter is False, which means that the sorting will be done on a copy of the dataframe.
5. The default value for the “kind” parameter is ‘quicksort’, which means that the sorting will be done using the quicksort algorithm.