numpy.array(list) convert list to array code example Example: convert list to nd array numpy.asarray(arr, dtype=None, order=None)