Skip to content

Instantly share code, notes, and snippets.

@bryankolano
Created November 26, 2022 10:35
Show Gist options
  • Save bryankolano/0211caa84f11ff20216cfcb0e85d2804 to your computer and use it in GitHub Desktop.
Save bryankolano/0211caa84f11ff20216cfcb0e85d2804 to your computer and use it in GitHub Desktop.
years = [2013,2014,2015]
filter_a = df['year'].isin(years)
filter_b = df['name'].str.contains('Honda')
filter_c = df['selling_price'].between(300000,450000)
mult_condition_filters = df[filter_a & filter_b & filter_c]
mult_condition_filters.head()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment