Having problem in getting the output

df_=df.copy()
per_75= df.distance.quantile(0.75)
df_= df_[
(df_[‘year’] >= 2010) &
((df_[‘method’]‘Radial velocity’) | (df_[‘method’]‘Transit’)) &
(df_[‘distance’] > per_75)
]

the above code is troubling me coz i m getting the desired output.
its from week 10 (querying from dataframe)

Hi @sarthak511,
Noticed that the snippets you’ve written are incorrect.
Please refer the video lectures/notebook.

1 Like