NumPy | base property
base property returns the base object of the array. If object B is derived from object A (i.e. memory location is shared), then object A will be the base of object B.
Consider the following code snippet:
a = np.array([1,2])b = a.view()b.base is aTrue
b shares the same memory address as
b is a view of
b.base is a evaluates to