Pandas is a popular data analysis library built on top of the Python programming language, and getting started with Pandas is an easy task. It assists with common manipulations for data cleaning, joining, sorting, filtering, deduping, and more. First released in 2009, pandas now sits as the epicenter of Python’s vast data science ecosystem and is an essential tool in the modern data analyst’s toolbox.
Pandas represents a fantastic step forward for graphical spreadsheet users who’d like to handle larger amounts of data, perform more complex operations, and automate the steps of their analysis routines. I like to introduce the tool as “Excel on steroids.”
Here’s some good news: you don’t need to be a software engineer to work effectively with the library. In fact, pandas offers Excel users a great bridge to get started with Python and programming in general. If you’ve never written a line of code before, you’ll be pleasantly surprised by how many spreadsheet operations already require you to think like a developer.
Let’s explore a sample dataset to see some of the library’s powerful features.
We’ll start by importing pandas and assigning it an alias to start off strong getting started with Pandas.
import pandas as pd
Our dataset is a CSV file of titles available on the online streaming service Netflix. Each row includes the title’s name, type, release year, duration, and the categories it’s listed in.
netflix = pd.read_csv("netflix_titles.csv")
netflix.head()

movies = netflix["type"] == "Movie" netflix[movies].head()
comedies = netflix["listed_in"].str.contains(r'Comed.*') netflix[comedies].head()
made_in_nineties = netflix["release_year"].between(1990, 1999) netflix[made_in_nineties].head()
netflix[movies & comedies & made_in_nineties].head()
netflix[movies & comedies & made_in_nineties].sort_values("release_year").head()