Skip to content

Commit 4d50261

Browse files
fix(data analysis visualizer): added back in direction 2 (freeCodeCamp#56788)
1 parent 6e676bf commit 4d50261

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

curriculum/challenges/english/08-data-analysis-with-python/data-analysis-with-python-projects/medical-data-visualizer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ File name: medical_examination.csv
4646
By each number in the `medical_data_visualizer.py` file, add the code from the associated instruction number below.
4747

4848
1. Import the data from `medical_examination.csv` and assign it to the `df` variable
49-
2. Create the `overweight` column in the `df` variable
49+
2. Add an `overweight` column to the data. To determine if a person is overweight, first calculate their BMI by dividing their weight in kilograms by the square of their height in meters. If that value is > 25 then the person is overweight. Use the value `0` for NOT overweight and the value `1` for overweight.
5050
3. Normalize data by making `0` always good and `1` always bad. If the value of `cholesterol` or `gluc` is 1, set the value to `0`. If the value is more than `1`, set the value to `1`.
5151
4. Draw the Categorical Plot in the `draw_cat_plot` function
5252
5. Create a DataFrame for the cat plot using `pd.melt` with values from `cholesterol`, `gluc`, `smoke`, `alco`, `active`, and `overweight` in the `df_cat` variable.

0 commit comments

Comments
 (0)