sliceDef1 = {'100-150': [100000, 150000], '150-650': [150000, 650000],
    '650-5M': [650000, 5000000]}
mn = pd.DataFrame({'fld1': [2.23, 4.45, 7.87, 9.02, 8.85, 3.32, 5.55],
    'fld2': [125000, 350000, 700000, 800000, 200000, 600000, 500000],
    'lType': ['typ1', 'typ2', 'typ3', 'typ1', 'typ3', 'typ1', 'typ2'],
    'counter': [100, 200, 300, 400, 500, 600, 700]})
result = mn.groupby([mn['fld1'].apply(getTag, args=(sliceDef,)), mn['fld2']
    .apply(getTag, args=(sliceDef1,)), 'lType']).sum()
print(result)
How to pass more than one parameter to map function in panda