Skip to content

Instantly share code, notes, and snippets.

View kristiewirth's full-sized avatar

Kristie Wirth kristiewirth

View GitHub Profile
'''
This file contains functions to generate line graphs, histograms, scatterplots (with line of best fit), boxplots, and bar graphs using matplotlib.pyplot.
'''
import matplotlib.pyplot as plt
import seaborn as sns
import numpy as np
from textwrap import wrap
import numpy as np
from scipy.stats import beta
control_successes = 10
control_failures = 20
treatment_successes = 15
treatment_failures = 23
desired_outcome = 'Increase metric'
# Other options:
import psycopg2
import pandas as pd
import redis
from zecrets import redis_secrets
class SQLRunner(object):
def __init__(self):
# Setting up credential info
self.HOST_SECRETS = redis_secrets.HOST_SECRETS