glucopy.Gframe.convert_unit#

Gframe.convert_unit(new_unit: str = 'mmol/L')[source]#

Converts the unit of the CGM signal.

Parameters:

new_unit (str, default 'mmol/L') – New unit for the CGM signal. Can be ‘mg/dL’ or ‘mmol/L’.

Return type:

None

Examples

Converting the unit of the CGM signal to mmol/L:

In [1]: import glucopy as gp

In [2]: gf = gp.data('prueba_1')

In [3]: gf.convert_unit('mmol/L')