Created
April 24, 2019 23:48
-
-
Save ThonyPrice/e617edf06b829b3943fd87f6775e6fcb to your computer and use it in GitHub Desktop.
Medium - Get started analysing your CGM data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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