Chapter 2: Mastering Pandas¶
Part I — Python for Data Science
Learning Objectives¶
By the end of this chapter you will be able to:
- Work confidently with Series and DataFrames
- Index, filter, group, and aggregate tabular data
- Apply vectorized operations instead of Python loops
{note}
Exercises should mirror real-world datasets (IBGE, OpenStreetMap attributes).
In [ ]:
Copied!
# Standard imports — add chapter-specific imports below
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
# Standard imports — add chapter-specific imports below
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
Series and DataFrames¶
TODO: write content.
In [ ]:
Copied!
# Code for section: Series and DataFrames
# Code for section: Series and DataFrames
Indexing and Selection¶
TODO: write content.
In [ ]:
Copied!
# Code for section: Indexing and Selection
# Code for section: Indexing and Selection
Filtering and Boolean Masks¶
TODO: write content.
In [ ]:
Copied!
# Code for section: Filtering and Boolean Masks
# Code for section: Filtering and Boolean Masks
GroupBy and Aggregation¶
TODO: write content.
In [ ]:
Copied!
# Code for section: GroupBy and Aggregation
# Code for section: GroupBy and Aggregation
Merging and Joining¶
TODO: write content.
In [ ]:
Copied!
# Code for section: Merging and Joining
# Code for section: Merging and Joining
Vectorized Operations¶
TODO: write content.
In [ ]:
Copied!
# Code for section: Vectorized Operations
# Code for section: Vectorized Operations
Exercises¶
TODO: write content.
In [ ]:
Copied!
# Code for section: Exercises
# Code for section: Exercises
Further Reading¶
- TODO: add references.