Numpy

From wiki
Revision as of 18:06, 25 November 2018 by Hdridder (talk | contribs) (Created page with "category:Python Module easing handling large data sets. =Array= Class of iterable, mutable objects. Very much like a list but can have elements...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Module easing handling large data sets.

Array

Class of iterable, mutable objects. Very much like a list but can have elements of only one(1) type (booleans can be mixed with numeric types, True = 1, False = 0). Arrays have their own set of methods. Some things are similar to lists, others differ.

Slicing works like in lists.

Numpy provides automatic mapping of operations to the array elements.

array1 / array2
Returns an array of the results from the division of all elements of array1 by the corresponding element of array2. Array1 and array2 must have the same number of elements.
array1 > x
Returns an array with all elements from array1 larger than x