Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 338 Bytes

File metadata and controls

16 lines (11 loc) · 338 Bytes
orphan:

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

.. ipython:: python
   :suppress:

   # ensure tips is defined when scanning with flake8-rst
   if 'tips' not in vars():
       tips = {}

.. ipython:: python

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