Array-Oriented Programming with NumPy Flashcards
(Fill-In) The NumPy library provides the ______ data structure, which is typically much faster than lists.
ndarray.
(Fill-In) Function array creates an array from ______.
an array or other collection of elements.
(True/False) By default, NumPy displays trailing 0s to the right of the decimal point in a floating-point value.
False. By default, NumPy does not display trailing 0s in the fractional part of a floating-point value
(Fill-In) NumPy function ______ returns an ndarray containing evenly spaced floating-point values.
linspace.
(True/False) When one of the operands of an array operator is a scalar, NumPy uses broadcasting to perform the calculation as if the scalar were an array of the same shape as the other operand, but containing the scalar value in all its elements.
True
(Fill-In) NumPy functions and calculate variance and standard deviation, respectively.
var, std.
(Fill-In) NumPy offers dozens of standalone functions, which it calls _____.
universal functions (or ufuncs).
(Fill-In) A view is also known as a(n) ______.
shallow copy.
(True/False) The array method copy returns a new array that is a view (shallow copy) of the original array.
False. The array method copy produces a deep copy of the original array.
(True/False) Module copy provides function deep_copy, which returns a deep copy of its argument.
False. The name of the function is deepcopy.