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
| ''' | |
| 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 | |
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
| 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: |
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
| 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 |
NewerOlder