Skip to content

Course Notes

Use this workspace to take notes, store code snippets, and build your own interactive cheatsheet!

Note that the data from the course is not yet added to this workspace. You will need to navigate to the course overview page, download any data you wish to use, and add it to the file browser.

# Import any packages you want to use here
import pandas as pd
# Importing GDP file to demonstrate .query() method

pd.read_csv('WorldBank_GDP.csv')

Take Notes

Add notes here about the concepts you've learned and code cells with code you want to keep.

Example of a dataframe to apply .query() method.

Using .query() method of pandas which is similar to WHERE clause in SQL.

financial company year value 0 total_revenue twitter 2019 3459329 1 cost_of_revenue twitter 2019 1137041 2 gross_profit twitter 2019 2322288 3 operating_expenses twitter 2019 1955915 4 net_income twitter 2019 1465659 5 total_revenue facebook 2019 70697000