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=['circle', 'right triangle', 'rhombus'])
df
Out[2]:
angles degrees
circle 0 360
right triangle 3 180
rhombus 4 360
In [3]:
df.pow
Out[3]:
<bound method _arith_method_FRAME.<locals>.f of                 angles  degrees
circle               0      360
right triangle       3      180
rhombus              4      360>
In [4]:
df.rpow
Out[4]:
<bound method _arith_method_FRAME.<locals>.f of                 angles  degrees
circle               0      360
right triangle       3      180
rhombus              4      360>