Aligned by Label
An Independent Guide to Modern DataFrame Analysis in Python
-
- $0.99
-
- $0.99
Publisher Description
An independent, practical guide to modern DataFrame analysis in Python, written for the 3.x generation of the most widely used open-source table library. The book teaches one idea that explains most of the library's power and most of its surprises: values are aligned by their labels, not by their positions. One fictional food cooperative with twelve stores runs throughout, and every listing was run for real on synthetic data generated by the book's own code. You will learn Series, DataFrames and indexes, choose data types deliberately, including the new default string type, and write code that follows Copy-on-Write without chained assignment. You will select, filter and build columns with column expressions and readable method chains, clean a messy export with a report of every decision, and group, merge and reshape tables with checks that catch duplicated or lost rows. Later chapters cover time series and time zones, CSV, columnar files, spreadsheets, JSON and SQL input and output, performance and memory, testing data code, a safe migration plan for existing code, leak-free feature tables and evaluation tables for machine learning and AI work, and an auditable weekly pipeline. Includes a hands-on lab, a cheat sheet with troubleshooting, review questions with answers and a glossary.