On this page
Project 1 WorkBook
Tutoring Lab Info
The data science lab is a resource you can use in person, online, and in Slack.
Introduction to Markdown Language
Python4DS
Surround ```chunks of code``` with ``` or a single line of `code` with `
Follow the first set of ``` with the words `python`
```python
# setup
import pandas as pd
import numpy as np
import plotly.express as px
```
Text Basics
Horizontal Lines
Add horizontal lines with either three ---
, ***
, or ___
But you also need blank lines above and below them
Headers
# Level 1 Header
## Level 2 Header
### Level 3 Header
#### Level 4 Header
##### Level 5 Header
###### Level 6 Header
Note: only top 3 Levels of Headers will automatically generate a table of contents.
Also Level 2 will automatically add a line underneath it.
Level 1 Header
Level 2 Header
Level 3 Header
Level 4 Header
Level 5 Header
Level 6 Header
Italics and Bold
_italics_ use one `_`
you can also use _mid_ sentence
__bold__ use two `__`
you can also use __mid__ sentence
italics use one _
you can also use mid sentence
bold use two __
you can also use mid sentence
Bullet Items
- Bulleted items
- Indented bulleted items
- You can have as many as you want
- Really as many as you want
- I knew you wanted one more
- Bulleted items
- Indented bulleted items
- You can have as many as you want
- Really as many as you want
- I knew you wanted one more bullet
- Really as many as you want
Numbered Items
1. Numbered items
1. Numbered items continued
1. Dont worry these will iterate
1. Keep using 1. each time
- Numbered items
- Numbered items continued
- Dont worry these will iterate
- Keep using 1. each time
Intro to Pandas
Pandas DataFrame (df
)
Python4DS
What is a pandas dataFrame? We can read the official documentation. I also like the video in this tutorial.
Use the Import Packages and Load df for the Code that follows.
Import Packages
import `library` as `alias`
Load Data
df = pd.read_csv(`url` or `file_path`)
Load Data
Data Frames come with attributes and built-in functions that can help us get a feel for our df.
Run the code below one at a time (or use other functions of your choice) to explore the names
df. What do you learn?
Pandas Data Transformation
Python4DS