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
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
()
view raw
mutli_cond_new_index.py
hosted with ❤ by
GitHub