Python Numpy Tutorial (with Jupyter and Colab)
https://cs231n.github.io/python-numpy-tutorialimport numpy as np from scipy.misc import imread, imresize import matplotlib.pyplot as plt img = imread ('assets/cat.jpg') img_tinted = img * [1, 0.95, 0.9] # Show the original image plt. subplot (1, 2, 1) plt. imshow (img) # Show the tinted image plt. subplot (1, 2, 2) # A slight gotcha with imshow is that it might give strange results # if presented with data that is not uint8.
Introduction to NumPy and Matplotlib — Jupyter Guide to ...
https://bvanderlei.github.io/jupyter-guide-to-linear-algebra/Numpy...import numpy as np ## The object [ [5, -1, 1, 0], [4, 3, 12, -6]], which gets passed into the array function is a Python list. ## The object returned by the array function is a NumPy array object. A = np.array( [ [5, -1, 1, 0], [4, 3, 12, -6]]) print(A) [ [ 5 -1 1 0] [ 4 3 12 -6]]