Primary competition visual

South African COVID-19 Vulnerability Map by #ZindiWeekendz

Helping Africa
$300 USD
Completed (over 6 years ago)
Prediction
318 joined
177 active
Starti
03 Apr 20
Closei
05 Apr 20
Reveali
05 Apr 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

Probably cause it in percentage

Upvotes 0
User avatar

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

Upvotes 0
User avatar

That is good questions. I also asked myself this question

Upvotes 0
User avatar

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)

Upvotes 0