Skip to content

Instantly share code, notes, and snippets.

@guerbai
Created June 2, 2019 05:05
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/2374972787a754283f55d966e4557ae6 to your computer and use it in GitHub Desktop.
Save guerbai/2374972787a754283f55d966e4557ae6 to your computer and use it in GitHub Desktop.
找到性价比最高的item #Pandas
bargain_idx = (reviews.points / reviews.price).idxmax()
bargain_wine = reviews.loc[bargain_idx, 'title']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment