Primary competition visual

South African COVID-19 Vulnerability Map by #ZindiWeekendz

Helping Africa
$300 USD
Challenge completed over 5 years ago
Prediction
319 joined
177 active
Starti
Apr 03, 20
Closei
Apr 05, 20
Reveali
Apr 05, 20
Why is total_households and total_individuals not integers?
Data · 3 Apr 2020, 18:02 · 4

The values here are expected to be whole numbers since it's values that were counted. Why is this not the case?

Discussion 4 answers
User avatar
Federal University of Technology Akure

Probably cause it in percentage

3 Apr 2020, 18:12
Upvotes 0

I don't think so. 13569,97% would make less sense then

3 Apr 2020, 18:27
Upvotes 0

That is good questions. I also asked myself this question

3 Apr 2020, 22:53
Upvotes 0

round it up to the nearest whole number and cast it to integer; since the column description depict they are counts/beings

Python code sample

train['household_size']=train['household_size'].round(0).astype(int)

4 Apr 2020, 17:43
Upvotes 0