This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
years
=
[
2013
,
2014
,
2015
]
mult_condition_filters_methods
=
df
[
(
df
[
"year"
].
isin
(
years
))
&
(
df
[
"name"
].
str
.
contains
(
"Honda"
))
&
(
df
[
"selling_price"
].
between
(
300000
,
450000
))
]
mult_condition_filters_methods
.
head
()
view raw
multi_conditions_with_method.py
hosted with ❤ by
GitHub