Mesa pivote de pandas
>>> emp.pivot_table(index='dept', columns='gender', values='salary', aggfunc='mean').round(-3)
Uninterested Unicorn
>>> emp.pivot_table(index='dept', columns='gender', values='salary', aggfunc='mean').round(-3)
df.pivot_table(values, index, aggfunc={'value_1': np.mean,'value_2': [min, max, np.mean]})
df.pivot_table(index = [df.iloc[:,meet_friends], df.iloc[:,friendsgiving]])
df.pivot_table(['int_age'],index = [df.iloc[:,meet_friends], df.iloc[:,friendsgiving]])