attach a calculated column to an existing dataframe,df.index