What is the difference between np.asarray() and np.array()?

What is the difference between np.asarray() and np.array() ?

In the statement: face_data = np.asarray(face_data) , can we use array() function??

When you make numpy array using np.array than it would create a copy of the object array and would not reflect changes to the original array (with default parameters). On the other hand if you use np.asarray() than it would reflect changes to the original array.

Hope this cleared your doubt. :blush: