I just needed a detailed explanation for how and why the df_heat clean-up looks this way:
df_heat = df[
(df['ap_lo'] <= df['ap_hi'])
& (df['height'] >= df['height'].quantile(0.025))
& (df['height'] <= df['height'].quantile(0.975))
& (df['weight'] >= df['weight'].quantile(0.025))
& (df['weight'] <= df['weight'].quantile(0.975))
]
Thanks in advance:)
Medical Data Visualizer
Link to the challenge: