df
[
[
x
in
[
'Apple'
,
'Amazon'
]
for
x
in
df
.
index
.
values
]
]
age
int64
market_cap
float64
Apple
46
2.42
Amazon
28
1.16
Hosted on
Deepnote