Say I want to iterate say I have pandas dataframe:
import pandas as pd
tmp = pd.DataFrame([(2,2),(0,4),(1,3)],columns= ['A','B'])
and I want to write something of the following kind:
def f(operator,column)
s.t
f('mean','A')
will return:
tmp['A'].mean()