Pandas is the most widely used Python library for data analysis. It introduces two key objects:
Series
A single column of data.
DataFrame
A table of rows and columns.
Example:
import pandas as pd
data = {
"Name": ["Alice", "Bob"],
"Age": [25, 30]
}
df = pd.DataFrame(data)DataFrames allow analysts to:
- Filter data
- Sort values
- Perform calculations
- Identify trends
Pandas forms the backbone of most data science workflows.