Numpy.copy() in Python

The copy() function of Python numpy class returns an array copy for the given object.



a: It represent the array_like input data.

order :  This parameter controls the memory layout of the copy. It is an optional parameter and supports C, F, A, k style where ‘C’ means C-order, ‘F’ means F-order, ‘A’ means ‘F’ if ‘a’ is Fortran contiguous, ‘C’ otherwise and ‘K’ means match the layout of ‘a’ as closely as possible.


This function returns the array interpretation of the specified array ‘a’.

Example 1


Pin It on Pinterest

Share This