
Quick intro to the course and the suggested prerequisites.
The following resource information is also found here:
Data Connection properties
github code URL
To select a sample of rows in SQL, you use the keyword "LIMIT", the equivalent function in Python is shown here.
Covering the equivalent of Select Distinct using Python Pandas
How to select only a subset of columns using Python Pandas
Simple filtering in Python Pandas, the "Where" clause in SQL
How to apply multiple filter conditions in Python Pandas (i.e. the counterpart to where, and in SQL)
Selecting a subset of values using Python, just like the SQL IN statement
Selecting items not in a subset of values using Python (i.e. just like SQL NOT IN statement)
Computing the average on your data in Python
Retrieving the max in your data using Python
Retrieving the min in your data using Python
The rarely easy to compute in most SQL databases. Python does it with ease.
Group By aggregates in Python: sum
Group By aggregates in Python: average/mean
Group By aggregates in Python: count
Group By aggregates in Python: multiple and different aggregates
I use row_number in SQL alot, what is the Python counterpart?
Using functions to parallel SQL case statements. (spoiler, you can get more sophisticated with Python)
Our favorite must have feature are SQL Joins when working with data! So how do we do this using Python Pandas?
Congrats for completing this course! Thank you for watching! I hope you enjoyed this crash course and are able to use these techniques in your day to day!
Overview
In this course you will learn how to use the Python Pandas library to achieve the core SQL functionality listed below.
If you are ready to make the leap from SQL to Python, this course will help you through your adoption and increased usage of Python for data manipulation, transformation and ultimately data analysis.
Understanding how to achieve SQL data manipulation features in Python will serve as your foundation for using Python for advanced analysts, data science and other machine learning tasks.
Prerequisites
This course is recommended for anyone who is comfortable with SQL and would like to increase their adoption of Python for their day to day. It's also recommended that you have a base understanding of Python or some familiarity of any programming language in order to get the most of this course. Other prerequisites will be outlined in the Introduction video, but having the following set up on your computer ahead of time will allow you to dive right in.
Python 3.7 or above installed
pandas library installed (pip install pandas)
IDE (e.g. PyCharm, VS Code)
Git (optional, for cloning repo with code examples)
Core Concepts taught in this course
Core SQL Concepts translated to Python Pandas code are:
SQL Limit
SQL Distinct
SQL Where
SQL WHERE / AND (Multiple Predicates)
SQL IN ( )
SQL NOT IN ( )
SQL Aggregate Functions
SQL MIN
SQL MAX
SQL COUNT
SQL COUNT DISTINCT
SQL AVERAGE / MEAN
Mode (Not usually available in most SQL databases)
SQL Group by Aggregates
SQL Row Number over (partition by / order by)
SQL Case Statements
SQL Joins
Thank you for enrolling in this course! Enjoy!