Skip to content

Instantly share code, notes, and snippets.

@mchirico
Last active March 28, 2020 15:53
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 mchirico/375bb985d8a0a8269dae015e956727a7 to your computer and use it in GitHub Desktop.
Save mchirico/375bb985d8a0a8269dae015e956727a7 to your computer and use it in GitHub Desktop.

X = df.drop('price', axis=1) # get all but price column y = df['price'] X.head(3)

Way to get series...

prices = df.price print(prices.min(), prices.mean(), prices.max())

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment