Python NumPy Cheat Sheet
Python NumPy Cheat Sheet
SCIENCE
np.zeros(3) - 1D array of length 3 all zeros Copying: Arithmetic Operations:
• np.copy(array) - Copies array to new memory array. • Addition: np.add(a,b)
• np.zeros((2,3)) - 2D array of all zeros • view(dtype) - Creates view of array elements with type • Subtraction: np.subtract(a,b)