Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
Series
3. Importing pandas
What DataFrames are
DataFrame columns
DataFrame rows
Filtering rows and columns
Filtering data frames
Sorting rows
Summary

Instruction

Great! Every external library in Python needs to be imported:

import pandas

Put that statement at the top of every script you want to use pandas in. You can refer to pandas objects, functions, and much more using the following notation:

pandas.object
pandas.function_name()

Typing pandas all the time might be tiring, so it's common practice to use pd as an alias:

import pandas as pd

Now, instead of pandas.function_name(), you can use pd.function_name(). Much quicker!

Exercise

Import pandas on your own and give it an alias named pd.

Stuck? Here's a hint!

To add an alias, write:

... as pd