Map Reduce And Lambda In Python Dataframes