years = [2013,2014,2015] | |
mult_conditions_readable = df[( # <---- This is the open parenthesis needed for multi-line separatation | |
(df['year'].isin(years)) & | |
(df['name'].str.contains('Honda')) & | |
(df['selling_price'].between(300000,450000)) | |
) #<---- This is the closed parenthesis needed for multi-line separatation | |
] | |
mult_conditions_readable.head() |