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
20.32451252353618, | |
19.179067782226465, | |
21.111480450277764, | |
25.900283172281142, | |
18.79741273774955, | |
21.01359988815589, | |
23.72929725223102, | |
22.463188753818187, | |
24.183561133485682, | |
21.661786454758815, |
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
import time | |
import asyncio | |
import aiohttp | |
import json | |
def t1(): | |
# -------------------------------------------------- # | |
# generator | |
for i in range(10): |
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 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.
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
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. |
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
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() |
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
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: |
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
stack | |
- cloudformation | |
- cloudwatch | |
- api gateway | |
- s3 | |
- iam | |
- lambda | |
----- | |
delete | |
- lambda |
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
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; |
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
gdb fido | |
layout next | |
b 16 | |
b doc.cc:3 | |
r(un) | |
n(ext) | |
s(tep) | |
p(rint) var | |
info locals |