Skip to content

Instantly share code, notes, and snippets.

@yairst
Created January 15, 2022 21:52
Show Gist options
  • Save yairst/872172f321e854ad839d440cfa19753c to your computer and use it in GitHub Desktop.
Save yairst/872172f321e854ad839d440cfa19753c to your computer and use it in GitHub Desktop.
Approximated dynamic burn rate based on resampled total number of events in the SLO period
df['aprox dynamic burn rate'] = df['total_hits_last_28_days_resampled'] / (df['hits']) * (EBP / 100)
fig, ax = plt.subplots(figsize=(16, 5))
df_sample.plot(x='date',y='hits', ax=ax, logy=True)
df_sample.plot(x='date',y='dynamic burn rate', ax=ax, logy=True)
df_sample.plot(x='date',y='aprox dynamic burn rate', ax=ax, logy=True, linestyle='--')
ax.grid()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment