Skip to content

Instantly share code, notes, and snippets.

View chyld's full-sized avatar
:electron:
import numpy

Chyld Medford chyld

:electron:
import numpy
View GitHub Profile
20.32451252353618,
19.179067782226465,
21.111480450277764,
25.900283172281142,
18.79741273774955,
21.01359988815589,
23.72929725223102,
22.463188753818187,
24.183561133485682,
21.661786454758815,
import time
import asyncio
import aiohttp
import json
def t1():
# -------------------------------------------------- #
# generator
for i in range(10):
Load the titanic.csv file into Jupyter.
Find the probabilty that a man in first class under the age of 30 will die on the Titanic.
Do not use any probability distribution for this challenge. Just perform raw counts on the data to find the probability.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
rvs(loc=0, scale=1, size=1, random_state=None)
Random variates.
pdf(x, loc=0, scale=1)
Probability density function.
logpdf(x, loc=0, scale=1)
Log of the probability density function.
cdf(x, loc=0, scale=1)
Cumulative distribution function.
logcdf(x, loc=0, scale=1)
Log of the cumulative distribution function.
from functools import reduce
x = int(input('x: '))
y = int(input('y:'))
xs = range(x, x + 5)
ys = range(y, y + 5)
vectors = list(zip(xs, ys))
# reduce()
import psycopg2
conn = psycopg2.connect("dbname=northwind user=postgres password=pass1234 host=0.0.0.0")
with conn:
with conn.cursor() as curs:
curs.execute("SELECT * FROM customers limit 10;")
for row in curs:
stack
- cloudformation
- cloudwatch
- api gateway
- s3
- iam
- lambda
-----
delete
- lambda
sudo yum update -y
sudo service mysqld start
sudo mysql_secure_installation
mysql -uroot -proot
nvm install 11
nvm alias default 11
nvm list
create database finance;
gdb fido
layout next
b 16
b doc.cc:3
r(un)
n(ext)
s(tep)
p(rint) var
info locals