Loading tutorials
np.array and np.arange, and read an array's shape. Later chapters build on the idea of an axis introduced here.2 min readnp.array and np.arange, and that you know what an array's shape means. It covers what a reduction is and how the basic reductions behave when you call them with no axis.2 min readnp.array and np.arange, and that you can read an array's shape. It builds on the idea that a reduction turns many values into fewer values.2 min readnp.array and np.arange, and that you can read an array's shape. It covers how axis picks the direction of a reduction in a two-dimensional array, and how to check the result.2 min readnp.array and np.arange, read an array's shape, and know that axis=0 runs down the rows while axis=1 runs across the columns. Here you learn one rule that lets you state the shape of any aggregation result before you run the code.3 min readnp.array and np.arange, read an array's shape, and use axis with sum, mean, max, and min. Here you will learn what keepdims=True does to the result's shape and why that matters when you combine a result with the original array.2 min readnp.array and np.arange, read an array's shape, and use sum and mean with the axis argument. It shows how to combine an aggregate with the original array so you can normalize rows and center columns.2 min readnp.array, read an array's shape, and know that axis=0 runs down the rows (one result per column) while axis=1 runs across the columns (one result per row). Here the same axis rule is applied to statistics.2 min readnp.array and np.arange, read an array's shape, and use the axis argument with sum, max, and min. Sometimes you need to know where the largest or smallest value sits, not what it is. argmax and argmin answer that question.3 min readnp.arange and reshape, and that you know how to read a shape such as (2, 3, 4). It also assumes you know the 2D rule: axis=0 gives one result per column, and axis=1 gives one result per row.2 min readaxis argument with sum, mean, min, and max. It covers what happens when an array contains missing values, and how to aggregate along an axis anyway.2 min readaxis works in sum, mean, and max, and that you can read an array's shape. A reduction such as sum removes the axis it runs along. A cumulative function keeps every position, so the output has the same shape as the input.2 min readaxis selects the direction of a reduction, and that every NumPy array has a fixed data type (dtype). Here you will see which dtype an aggregation uses for its result, and when it silently gives a wrong number.2 min readnp.array and np.arange, read an array's shape, and use sum, mean, max, and keepdims with an axis argument. It collects the errors that come up most often and gives you quick ways to catch them.2 min read