Examples
import numpy as np
import pandas as pd
df = pd.DataFrame({'angles': [3, 4],
'degrees': [180, 360]},
index=['triangle', 'rhombus'])
df
Subtract a list and Series by axis with operator version:
df - [1, 2]
df.sub([1, 2], axis='columns')
df.sub(pd.Series([1, 1], index=['triangle', 'rhombus']),
axis='index')