B2PythonIntermediateAbout 130 min to complete
Array Operations
Command of every operation you will perform on numeric data — and the axis parameter that governs all of them.
Notebook
About 130 minutes to complete
Enrol to read the notebook and download it to run.
What this module covers
Command of every operation you will perform on numeric data — and the axis parameter that governs all of them.
By the end of it
- Apply element-wise arithmetic and universal functions (ufuncs) to whole arrays
- Aggregate with sum, mean, std, min, max, argmin, argmax, and cumulative forms
- Explain and use axis correctly, predicting the resulting shape every time
- Filter with boolean masks and combine conditions with &, |, ~
- Branch element-wise with np.where, np.select, and np.clip
- Sort with sort, argsort, and partition, including sorting by a key column
- Handle missing values with the nan* family and np.isnan
- Apply set operations: unique, in1d/isin, intersect1d, setdiff1d