Fixes a few issues in the assigned dtypes on import of the csv to pandas. First the glucose_monitoring field was incorrectly cast to str. Second the float32 would not round, so this was changed float64. Rounding was introduced for cholesterol, height and weight.
Null values for choices were replaced with None instead of 0
Session is not quite working out if a user has uploaded a csv or not, so raising this as a separate issue.
Small bug fix in the median hba1c as this was trying to calculate medians if some of the values were None.
Overview
Fixes a few issues in the assigned dtypes on import of the csv to pandas. First the
glucose_monitoring
field was incorrectly cast tostr
. Second thefloat32
would not round, so this was changedfloat64
. Rounding was introduced for cholesterol, height and weight. Null values for choices were replaced with None instead of 0 Session is not quite working out if a user has uploaded a csv or not, so raising this as a separate issue. Small bug fix in the median hba1c as this was trying to calculate medians if some of the values wereNone
.