pandas groupby multiple functions
问题 I want summarize the integer_transaction by EMP_NAME . why does my first command fail? How to modify it in case of the second command how to avoid the warning? Is there any way to put EMP_NAME in a column instead of the index I want output Emp_name Count Sum a 2 1 b 1 0 import pandas as pd import numpy as np df = pd.DataFrame(data = {'EMP_NAME': ["a", "a", "b"], 'integer_transaction': [0, 1, 0]}) x=df.groupby(['EMP_NAME'])['integer_transaction'].agg({'Frequency_count': count, 'Frequency_Sum':