Numpy basicsΒΆ
- Data types
- Array creation
- I/O with Numpy
- Indexing
- Assignment vs referencing
- Single element indexing
- Other indexing options
- Index arrays
- Indexing Multi-dimensional arrays
- Boolean or “mask” index arrays
- Combining index arrays with slices
- Structural indexing tools
- Assigning values to indexed arrays
- Dealing with variable numbers of indices within programs
- Broadcasting
- Byte-swapping
- Structured arrays
- Subclassing ndarray
- Credits
- Introduction
- View casting
- Creating new from template
- Relationship of view casting and new-from-template
- Implications for subclassing
- Simple example - adding an extra attribute to ndarray
- Slightly more realistic example - attribute added to existing array
- __array_wrap__ for ufuncs
- Extra gotchas - custom __del__ methods and ndarray.base