Examples

In [1]:
import numpy as np
import pandas as pd
In [2]:
df = pd.DataFrame({'angles': [0, 3, 4],
                   'degrees': [360, 180, 360]},
                  index=['ellipse', 'right triangle', 'rhombus'])
df
Out[2]:
angles degrees
ellipse 0 360
right triangle 3 180
rhombus 4 360
In [3]:
df.rtruediv(10)
Out[3]:
angles degrees
ellipse inf 0.027778
right triangle 3.333333 0.055556
rhombus 2.500000 0.027778