- Using
pydataset
, load thefaithful
dataset and read it's documentation. - What is pearson's r for the two variables?
- Visualize the relationship between the variables.
- Build a linear model that predicts
eruptions
based onwaiting
. - Create a visualization with your predictions
waiting
should be on the x axis, anderuptions
on the y- Use color to differentiate the actual vs predicted values.
- Add a descriptive title.
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
How to Practice a 5 minute group presentation | |
If you're still working on memorizing your script, then only read off of paper or notecards. No phones because phones = distration. | |
Have one person start the recorder and record the entire 5 minute presentation on the voice recorder on your phone. | |
Put the recording phone on the table, and everyone else put your phones away. | |
Present as if it's the real deal. Visualize your success. | |
Each of you have a pen and paper ready for the review session, so you can take notes about your own words and delivery. | |
After the presentation, take a little break, high five each-other. Take a moment to feel good about how far you've come. | |
Regroup and sit down together. Play back the audio. Listen to yourself carefully. Ask yourself, do your words sound like you? Are any sentences too big of a mouthful? Are you noticing that your words are changing a little bit from your script? That means your brain knows better. | |
This will take around 15 minutes for setup, presenting, and reviewing. | |
Do |
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
# 17 list comprehension problems in python | |
fruits = ['mango', 'kiwi', 'strawberry', 'guava', 'pineapple', 'mandarin orange'] | |
numbers = [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 17, 19, 23, 256, -8, -4, -2, 5, -9] | |
# Example for loop solution to add 1 to each number in the list | |
numbers_plus_one = [] | |
for number in numbers: | |
numbers_plus_one.append(number + 1) |
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 | |
# Life w/o numpy to life with numpy | |
## Setup 1 | |
a = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] | |
# Use python's built in functionality/operators to determine the following: | |
# Exercise 1 - Make a variable called sum_of_a to hold the sum of all the numbers in above list | |
# Exercise 2 - Make a variable named min_of_a to hold the minimum of all the numbers in the above list |
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
"use strict"; | |
/** | |
* TODO: | |
* Write some JavaScript that uses a `confirm` dialog to ask the user if they | |
* would like to enter a number. If they click 'Ok', prompt the user for a | |
* number, then use 3 separate alerts to tell the user: | |
* | |
* - whether the number is even or odd | |
* - what the number plus 100 is |
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
function pullall() { | |
git branch -a | grep -v master | sed 's. remotes/origin/..' | xargs -L 1 git checkout | |
} | |
alias ls="ls -lha" |
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
# Run the following lines in your terminal to add .DS_Store, pycache, ipynb checkpoints, and env.py to the global gitignore file. | |
echo ".DS_Store" >> ~/.gitignore_global | |
echo "**/.DS_Store" >> ~/.gitignore_global | |
echo ".ipynb_checkpoints" >> ~/.gitignore_global | |
echo "**/.ipynb_checkpoints" >> ~/.gitignore_global | |
echo "__pycache__" >> ~/.gitignore_global | |
echo "**/__pycache__" >> ~/.gitignore_global | |
echo "env.py" >> ~/.gitignore_global | |
echo "**/env.py" >> ~/.gitignore_global |
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
# Consider the following list containing 2 dictionaries. | |
# Remember, lists are ordered lists with a numeric index and dictionaries are labeled lists where each key denotes its value. | |
# In a way, think of each dictionary's key as a variable that holds the value on the right of the colon symbol. | |
fruits = [ | |
{ | |
"item": "apple", | |
"quantity": 5, | |
"price": 0.95 | |
}, |
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
let cart = [ | |
{ | |
"name": "apple", | |
"price": 1.25, | |
"quantity": 5 | |
}, | |
{ | |
"name": "kiwi", | |
"price": 3.99, | |
"quantity": 7 |
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
brew uninstall mysql | |
rm -rf /usr/local/var/mysql | |
sudo chown -R $(whoami) $(brew --prefix)/* | |
brew install [email protected] | |
If there are other problems, check out the link below: | |
https://gist.github.com/operatino/392614486ce4421063b9dece4dfe6c21 |