numpy.ndarray — NumPy v1.26 Manual
numpy.org › reference › generatedAn array object represents a multidimensional, homogeneous array of fixed-size items. An associated data-type object describes the format of each element in the array (its byte-order, how many bytes it occupies in memory, whether it is an integer, a floating point number, or something else, etc.)
python - How to convert ndarray to array? - Stack Overflow
stackoverflow.com › questions › 18200052May 16, 2017 · How to convert ndarray to array? Ask Question Asked 10 years, 4 months ago Modified 6 years, 7 months ago Viewed 131k times 35 I'm using pandas.Series and np.ndarray. The code is like this >>> t array ( [ [ 0., 0., 0.], [ 0., 0., 0.], [ 0., 0., 0.]]) >>> pandas.Series (t) Exception: Data must be 1-dimensional >>>
numpy.ndarray.tolist — NumPy v1.26 Manual
numpy.org › generated › numpyExamples For a 1D array, a.tolist () is almost the same as list (a) , except that tolist changes numpy scalars to Python scalars: >>> a = np.uint32( [1, 2]) >>> a_list = list(a) >>> a_list [1, 2] >>> type(a_list[0]) <class 'numpy.uint32'> >>> a_tolist = a.tolist() >>> a_tolist [1, 2] >>> type(a_tolist[0]) <class 'int'>
numpy.asarray — NumPy v1.26 Manual
numpy.org › reference › generatedConvert the input to an array. Parameters: aarray_like Input data, in any form that can be converted to an array. This includes lists, lists of tuples, tuples, tuples of tuples, tuples of lists and ndarrays. dtypedata-type, optional By default, the data-type is inferred from the input data. order{‘C’, ‘F’, ‘A’, ‘K’}, optional Memory layout.