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)