Introduction to Python
Run the hidden code cell below to import the data used in this course.
1 hidden cell
Take Notes
Add notes about the concepts you've learned and code cells with code you want to keep.
Add your notes here
import numpy as np
import pandas as pd
print("imported")
# Add your code snippets here
print("Hellooooo")
Explore Datasets
Use the arrays imported in the first cell to explore the data and practice your skills!
- Print out the weight of the first ten baseball players.
- What is the median weight of all baseball players in the data?
- Print out the names of all players with a height greater than 80 (heights are in inches).
- Who is taller on average? Baseball players or soccer players? Keep in mind that baseball heights are stored in inches!
- The values in
soccer_shooting
are decimals. Convert them to whole numbers (e.g., 0.98 becomes 98). - Do taller players get higher ratings? Calculate the correlation between
soccer_ratings
andsoccer_heights
to find out! - What is the average rating for attacking players (
'A'
)?
GIT
ls - list of current files in directory ls -a - shows ALL(included hidden) files and directories
pwd - returns current directory name cd <dir_name> - move to <dir_name>
echo "Contents of a new file" > new_text_file.txt echo "Append to file" >> old_text_file.txt
nano <file_name> - edit file Ctrl+O - save changes Ctrl+X - exit the editor
git add
git add .
git commit -m "Comment ..."
git status
git diff filename git diff -r HEAD filename git diff -r HEAD
Understanding Data Science
Data Engineer