Pandas
Pandas is the in-memory table tool to reach for when labeled rows and columns, heterogeneous dtypes, and data-cleaning ergonomics matter more than distributed execution. These notes are a decision map, not a local copy of the API reference.
Working path
| Need | Start with |
|---|---|
| Understand the objects | Series, then DataFrame |
| Load and inspect data | DataFrame indexing and loading |
| Select rows or columns | querying and indexing pages |
| Repair data quality | missing values, then data cleaning |
| Combine tables | merging DataFrames |
| Summarize | grouping data and pivot tables |
| Reshape or encode | scales and pivot tables |
| Work with time | date functionality |
House rules
- Make labels, dtypes, units, time zones, and missing-value policy explicit.
- Use
.locfor labels and.ilocfor positions; do not rely on ambiguous[]behavior. - Prefer vectorized operations,
agg, andtransformbefore row-wiseapply. - Validate merge cardinality and inspect unmatched keys.
- Treat a DataFrame as an intermediate analytical object, not a database or a distributed compute engine.