Last active
December 30, 2019 04:27
-
-
Save 0xKD/f32fb2d6b72db08de296d953084af983 to your computer and use it in GitHub Desktop.
This file contains 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
%load_ext autoreload | |
%autoreload 2 | |
import sys | |
import logging | |
import numpy as np | |
import scipy as sp | |
import sklearn | |
import statsmodels.api as sm | |
from statsmodels.formula.api import ols | |
import matplotlib as mpl | |
import matplotlib.pyplot as plt | |
%matplotlib inline | |
%config InlineBackend.figure_format = 'retina' | |
import pandas as pd | |
pd.set_option("display.max_rows", 55) | |
pd.set_option("display.max_columns", 55) | |
import seaborn as sns | |
sns.set_style("whitegrid") | |
sns.set_context( | |
"notebook", | |
font_scale=1.2, | |
rc={"lines.linewidth": 1.2}, | |
) | |
def sinplot(flip=1): | |
x = np.linspace(0, 14, 100) | |
for i in range(1, 7): plt.plot(x, np.sin(x + i * .5) * (7 - i) * flip) | |
sinplot() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment