Feb-08-2019, 01:09 PM
(This post was last modified: Feb-08-2019, 01:19 PM by gehrenfeld.)
28 days needed for calculation and 14 days for the chart.
It can't determine roughly the numbers. I use the calculation to adjust insulin shots, so I need to be as precise as I can.
I have to include the meter readings and my finger stick readings (which the number of sticks very every day). Line 23 of the code does that.
I now understand what you are telling me!!!
That is a good idea for cutting down the number of lines to read.
One of the problems I have with using
How can I get just the date or the date with the time of 00:00:00, so it will start at midnight.
It can't determine roughly the numbers. I use the calculation to adjust insulin shots, so I need to be as precise as I can.
I have to include the meter readings and my finger stick readings (which the number of sticks very every day). Line 23 of the code does that.
I now understand what you are telling me!!!
That is a good idea for cutting down the number of lines to read.
One of the problems I have with using
datetime.datetime.now()is it returns the date and current time, so when I run
df = df.loc[df['rdate'] > datetime.datetime.now() - pd.to_timedelta("14day")]it uses the time that I run the code.
How can I get just the date or the date with the time of 00:00:00, so it will start at midnight.
Gary