I\'m sorry for a dumb question, but I cannot find any way to do this easily.
I have two pandas data frames in Python 2.7, which are indexed by tenor:
pandas
rates.sub(treas.iloc[:,0],axis=0).dropna()
or
rates.sub(treas.squeeze(),axis=0).dropna()