Medical Data Visualizer : Value Error

Hello great people,

I’ve been battling with this assignment in the last few days and keep getting “Value Error” message. Below is the link to my replit, kindly assist to check what I’m doing wrongly

https://replit.com/@Beejay4L/boilerplate-medical-data-visualizer#medical_data_visualizer.py

BR,
Oyebanji

Check your parentheses at the line indicated by the error (File "/home/runner/boilerplate-medical-data-visualizer/medical_data_visualizer.py", line 38, in draw_heat_map):

    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)))]

df is not a function which is why it’s throwing the convoluted shape error.

There are other things you will need to fix too before getting the tests to pass.

Hi Jeremy,

Thank you for the response.

I have made some corrections as you pointed out but I’m still having errors. Kindly assist to check.

Thanks.

BR,
Oyebanji

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.