Loading tutorials
np.array, np.arange, and reshape. It also assumes you know what shape and dtype mean, and that you can index a plain Python list. The previous chapter covered shape and axes. Here we use them to answer one question: which element does an inte6 min readnp.array, np.arange, and reshape. You should also know what an array's shape is. Here you will learn the full start:stop:step rules, how negative numbers change them, and how slices combine across several axes6 min read... (the Ellipsis) stands in for "all the axes I don't want to spell out". np.newaxis inserts a new axis of length 1. The first makes code independent of how many dimensions an array has. The second is how you line up arrays of differen6 min readnp.array, np.arange, and reshape, and that you know what shape and dtype mean. It also assumes you have used integer indices and start:stop:step slices on arrays. The question here is whether a selection gives you the same data or new data. Tha5 min readnp.array, np.arange, and reshape, and that you know what shape and dtype mean. It also assumes you have seen integer indexing and slicing from earlier chapters. Here you will learn how a comparison turns an array into a boolean array, and how5 min readdata > 0 gives you one boolean mask. Real filters usually need several conditions at once: values inside a range, values outside it, or values that meet one condition but not another. This chapter covers how to combine masks with &, |, and ~, why Python's and, `5 min readnp.array, np.arange, and reshape, and that you know what shape and dtype mean. It also assumes you have seen how a comparison such as data > 0 produces a boolean mask. Here you use masks to change values, and you use np.where to build new arra5 min readnp.arange and reshape. It also assumes you know integer indexing and slicing, and you know that integer-array (fancy) indexing returns a copy. Those topics come from earlier chapters. Here you learn how to select a rectangular block of arbitrary ro6 min reada[mask, 1:3] or b[0, :, [0, 1]]. This chapter explains how NumPy combines them and how to predict the result shape. It also covers when you g5 min readnp.array, np.arange, and reshape, and that you know what shape and dtype mean. It also assumes you have met integer indexing, slices, boolean masks, and fancy indexing in the earlier c5 min read