rcpch / national-paediatric-diabetes-audit

A django application to audit the care of children and young people with diabetes in England and Wales.
0 stars 1 forks source link

fix-visit-data-type-errors #366

Closed eatyourpeas closed 1 week ago

eatyourpeas commented 1 week ago

Overview

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.

mbarton commented 1 week ago

Seen on STAGING (merged by @eatyourpeas 6 minutes and 33 seconds ago) Please check your changes!