Skip to content

Instantly share code, notes, and snippets.

@lakshay-arora
Last active February 5, 2020 11: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 lakshay-arora/c34adc85cfd7a77e2f02a2b55d3687a8 to your computer and use it in GitHub Desktop.
Save lakshay-arora/c34adc85cfd7a77e2f02a2b55d3687a8 to your computer and use it in GitHub Desktop.
# select few columns with a condition
data.loc[(data.age >= 12), ['city', 'gender']]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment