Skip to content

Instantly share code, notes, and snippets.

@brinnaebent
Created November 17, 2020 14:27
Show Gist options
  • Save brinnaebent/4ef72355e145e658158089b893343a91 to your computer and use it in GitHub Desktop.
Save brinnaebent/4ef72355e145e658158089b893343a91 to your computer and use it in GitHub Desktop.
# 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