ONSdigital / sml-python-small

Statistical Methods Library for Python Pandas methods used in SPP.
MIT License
10 stars 5 forks source link

Spp9924 nan handling updates #44

Closed gibbardsteve closed 1 year ago

gibbardsteve commented 1 year ago

Synopsis

The totals and Components code is not handling NaN values appropriately when scenarios are run when component values are missing.

Checklist

Description

The code ensures that math.isnan() is used whenever a value is being checked that could be set as NaN. UAT test cases a7 7001, 7002, 7003 and 14001, 14002 and 14003 are added to test the desired behaviour.