Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
def __init__(self, data, dist=stats.norm, fit=False, | |
distargs=(), a=0, loc=0, scale=1): | |
self.data = data | |
self.a = a | |
self.nobs = data.shape[0] | |
da = list(distargs) | |
da.extend([loc, scale]) | |
self.__all_distargs = tuple(da) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
( | |
flights.groupby(['year', 'month', 'day']) | |
[['arr_delay', 'dep_delay']] | |
.mean() | |
.query('arr_delay > 30 | dep_delay > 30') | |
) |
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 | |
import matplotlib | |
from matplotlib.transforms import Transform | |
from matplotlib.scale import ScaleBase | |
from matplotlib.ticker import ( | |
FixedLocator, | |
NullLocator, | |
Formatter, | |
NullFormatter, |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
%matplotlib inline | |
import numpy as np | |
import pandas | |
import matplotlib.pyplot as plt | |
import seaborn | |
seaborn.set(style='ticks', palette='deep', rc={'text.usetex': False}) | |
import bmp | |
import utils |