Array elements' extraction

The NumPy extract function allows us to extract items from an array based on a condition. This function is similar to the where function we encountered in Chapter 3, Get to Terms with Commonly Used Functions. The special nonzero function selects non-zero elements.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset