English
Summary
Conclusions
NumPy operates on the shapes and axes of numeric arrays, pandas adds labels and tabular transformations, and Matplotlib explains results graphically. Report quality depends on the data contract, an explicit missing-value policy, key validation, and verified totals. Vectorization shortens code but does not eliminate the need to check shapes. Every plot must include units and be readable without relying on color alone.
Self-check questions
- What do
dtype,shape,ndim, andsizemean? - Why do a NumPy array and a list respond differently to multiplication?
- Which axis does
mean(axis=0)eliminate for a matrix? - When does a slice modify the original array, and how can you prevent this?
- Which shapes does broadcasting permit?
- Why are
isfiniteand an error tolerance needed? - How does a
.loclabel differ from an.ilocposition? - How does Copy-on-Write affect chained assignment?
- Why can a missing measurement not automatically be replaced with zero?
- How does
countdiffer fromsizein grouping? - How does
validatehelp during merge? - Why are energy and a cumulative reading aggregated differently?
- How do you choose between a line, bars, a histogram, and points?
- What is the
Aggbackend for in tests and batch reports? - What data and versions must be saved to reproduce an analysis?