Skip to content

Conversation

@pmantony
Copy link

df.loc[:, ['animal', 'age', 'visits']].groupby(['animal', 'visits'], as_index= False).mean()

adjusted the pivot table to reflect the desired answer.

df.loc[:, ['animal', 'age', 'visits']].groupby(['animal', 'visits'], as_index= False).mean()

adjusted the pivot table to reflect the desired answer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant