Get everything you can about people.
select * from people
-- comments
import random | |
import math | |
def mean(elements): | |
return sum(elements) / len(elements) | |
def euclidean_dist(first, second): | |
assert len(first) == len(second) | |
return sum((f - s)**2 for f, s in zip(first, second))**0.5 |
# inspired by and based on: | |
# https://julien.danjou.info/python-exceptions-guide/ | |
# https://github.com/jd/julien.danjou.info/blob/master/bin/generate-python-exceptions-graph.py | |
import builtins | |
edges = set() | |
synonyms = {} | |
for name in dir(builtins): | |
item = getattr(builtins, name) |
chi-squared test
import scipy.stats
obs = np.array([[a, b],
[c, d]])
_, p, _, _ = scipy.stats.chi2_contingency(obs)