The same operations are expressed in pandas below. Note that these operations do not happen in place. To make these changes persist, assign the operation back to a variable.
.. ipython:: python tips[["sex", "total_bill", "tip"]]
.. ipython:: python tips.drop("sex", axis=1)
.. ipython:: python tips.rename(columns={"total_bill": "total_bill_2"})