Created
November 17, 2020 14:27
-
-
Save brinnaebent/4ef72355e145e658158089b893343a91 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Standard Deviation over all days | |
interdaysd = np.std(df['Glucose']) | |
# Standard Deviation for each day | |
intradaysd =[] | |
for i in pd.unique(df['Day']): | |
intradaysd.append(np.std(df[df['Day']==i])) | |
# We can find the average intraday standard deviation: | |
intradaysd_mean = np.mean(intradaysd) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment