Python Forum
Information how pandas works
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Information how pandas works
#10
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
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
Reply


Messages In This Thread
Information how pandas works - by gehrenfeld - Feb-04-2019, 09:59 PM
RE: Information how pandas works - by stullis - Feb-05-2019, 02:38 AM
RE: Information how pandas works - by scidam - Feb-05-2019, 11:30 AM
RE: Information how pandas works - by gehrenfeld - Feb-05-2019, 12:29 PM
RE: Information how pandas works - by scidam - Feb-06-2019, 12:22 AM
RE: Information how pandas works - by gehrenfeld - Feb-06-2019, 01:00 PM
RE: Information how pandas works - by scidam - Feb-07-2019, 12:41 AM
RE: Information how pandas works - by gehrenfeld - Feb-07-2019, 12:51 PM
RE: Information how pandas works - by scidam - Feb-07-2019, 11:44 PM
RE: Information how pandas works - by gehrenfeld - Feb-08-2019, 01:09 PM
RE: Information how pandas works - by scidam - Feb-09-2019, 11:25 AM
RE: Information how pandas works - by gehrenfeld - Feb-09-2019, 12:17 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How do I convert my data so it works with Pandas? Oliver 0 2,462 Dec-11-2017, 04:09 PM
Last Post: Oliver

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020