Data Analysis with Python Projects - Medical Data Visualizer

Same error, same problem: https://forum.freecodecamp.org/t/data-analysis-with-python-projects-medical-data-visualizer/714175

You should search the forum first for this error.

I would remove this since you were trying to fix the error by manipulating the data:

You are missing this instruction:

Clean the data. Filter out the following patient segments that represent incorrect data:

  • diastolic pressure is higher than systolic (Keep the correct data with (df[‘ap_lo’] <= df[‘ap_hi’]))

I see what happened, this seems to be missing from the numbered instructions…