{"id":41624,"date":"2026-07-01T11:27:05","date_gmt":"2026-07-01T09:27:05","guid":{"rendered":"https:\/\/www.graviton.at\/letterswaplibrary\/how-to-deal-with-null-values-for-a-health-prediction-dataset\/"},"modified":"2026-07-01T11:27:05","modified_gmt":"2026-07-01T09:27:05","slug":"how-to-deal-with-null-values-for-a-health-prediction-dataset","status":"publish","type":"post","link":"https:\/\/www.graviton.at\/letterswaplibrary\/how-to-deal-with-null-values-for-a-health-prediction-dataset\/","title":{"rendered":"How To Deal With Null Values For A Health Prediction Dataset?"},"content":{"rendered":"<p><!-- SC_OFF --><\/p>\n<div class=\"md\">\n<p>hi! So I have this dataset where the objective is to predict a student&#8217;s health risk, but I&#8217;m a lil confused about how to handle the null values. These are the % of null values for the columns:<\/p>\n<pre><code> id 0.000000 health_condition 0.000000 sleep_duration 11.012943 heart_rate 1.135073 bmi 2.013946 calorie_expenditure 7.658878 step_count 2.016554 exercise_duration 1.000017 water_intake 6.300211 diet_type 1.000017 stress_level 12.000064 sleep_quality 8.452690 physical_activity_level 5.306715 smoking_alcohol 4.141791 gender 3.097141 dtype: float64id <\/code><\/pre>\n<p>What would you recommend I do for these values? If I were to drop the columns &lt;5%, I would be losing nearly 100,000 values (out of 700,000) which I don&#8217;t think is all that good. I thought of using K-means to fill the null BMI values but I don&#8217;t know.<\/p>\n<p>I would appreciate any advice! Thanks \ud83d\ude42<\/p>\n<\/div>\n<p><!-- SC_ON -->   submitted by   <a href=\"https:\/\/www.reddit.com\/user\/Defiant-Ad3530\"> \/u\/Defiant-Ad3530 <\/a> <br \/> <span><a href=\"https:\/\/www.reddit.com\/r\/datasets\/comments\/1ukg04n\/how_to_deal_with_null_values_for_a_health\/\">[link]<\/a><\/span>   <span><a href=\"https:\/\/www.reddit.com\/r\/datasets\/comments\/1ukg04n\/how_to_deal_with_null_values_for_a_health\/\">[comments]<\/a><\/span><\/p><div class='watch-action'><div class='watch-position align-right'><div class='action-like'><a class='lbg-style1 like-41624 jlk' href='javascript:void(0)' data-task='like' data-post_id='41624' data-nonce='9de69db8d5' rel='nofollow'><img class='wti-pixel' src='https:\/\/www.graviton.at\/letterswaplibrary\/wp-content\/plugins\/wti-like-post\/images\/pixel.gif' title='Like' \/><span class='lc-41624 lc'>0<\/span><\/a><\/div><\/div> <div class='status-41624 status align-right'><\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>hi! So I have this dataset where the objective is to predict a student&#8217;s health risk, but&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[85],"tags":[],"class_list":["post-41624","post","type-post","status-publish","format-standard","hentry","category-datatards","wpcat-85-id"],"_links":{"self":[{"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/posts\/41624","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/comments?post=41624"}],"version-history":[{"count":0,"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/posts\/41624\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/media?parent=41624"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/categories?post=41624"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/tags?post=41624"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}