Skip to content

Instantly share code, notes, and snippets.

@ThonyPrice
Created April 24, 2019 23:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ThonyPrice/e617edf06b829b3943fd87f6775e6fcb to your computer and use it in GitHub Desktop.
Save ThonyPrice/e617edf06b829b3943fd87f6775e6fcb to your computer and use it in GitHub Desktop.
Medium - Get started analysing your CGM data
from datetime import datetime, date
z = df.copy(deep=True)
z['t1'] = z.index
z['t2'] = z['t1'].shift(1)
z['t_diff'] = z['t1'] - z['t2']
z['t_diff'].describe()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment