Run this line first to import the Pandas library!
There are multiple ways to create a Pandas Dataframe. Here are two of the most common ways:
CSV stands for comma separated values where columns are distinguished by commas.
Dictionaries are another type of list where each element has a key and value. The key has to be unique.
.head() &.tail()
.iloc[] & .loc[]
.describe()
We can filter out rows in our dataframe based on boolean expressions.
Regular Expressions are very useful in filtering your data based on complex (but concise) boolean expressions. You can find more information on regular expressions in the EBNF & Pattis's Regular Expressions Folder under Files. You should read ebnf.pdf before you learn regular expressions.
We can also sort individual columns as Series! Let's just get the heights of the 5 tallest Pokemon.
.query(): A Simplier Way to Slice a Dataframe
.read_sql() : Read Data from SQL Databases
You can read in data stored in SQL databases with .read_sql(query_str, connection).