Skip to content

Instantly share code, notes, and snippets.

@bryankolano
Created November 26, 2022 10:39
Show Gist options
  • Save bryankolano/9af0000de967c14695c846931f206f89 to your computer and use it in GitHub Desktop.
Save bryankolano/9af0000de967c14695c846931f206f89 to your computer and use it in GitHub Desktop.
multi_cond_name_as_index = (df_name_as_index
.filter(like = 'Honda', axis = 0)
.loc[lambda x: x['year'].isin(years)]
.loc[lambda x: x['selling_price'].between(300000,450000)])
multi_cond_name_as_index.head()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment