Skip to content

Latest commit

 

History

History
7 lines (5 loc) · 189 Bytes

File metadata and controls

7 lines (5 loc) · 189 Bytes

pandas objects have a :meth:`DataFrame.sort_values` method, which takes a list of columns to sort by.

.. ipython:: python

   tips = tips.sort_values(["sex", "total_bill"])
   tips.head()