Skip to content

Instantly share code, notes, and snippets.

@guerbai
Created June 2, 2019 05:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guerbai/0f9360e2725504f4b55addcdbe7f67e3 to your computer and use it in GitHub Desktop.
Save guerbai/0f9360e2725504f4b55addcdbe7f67e3 to your computer and use it in GitHub Desktop.
列出各种类的最大值与最小值 #Pandas
price_extremes = reviews.groupby('variety').price.agg([min, max])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment