Computer Science, asked by rachudadhwal07, 8 months ago

Which of the following is used to convert the list data type to the numpy array? 1.Arraylist 2. Array.list 3.Numpy.array(list) 4.none of these

Answers

Answered by Anonymous
0

Answer:

Get the Array to be converted. Convert the array to Stream. Convert the Stream to List using Collectors. toList()

...

Algorithm:

Get the Array to be converted.

Create the List by passing the Array as parameter in the constructor of the List with the help of Arrays. asList() method.

Return the formed List.

Similar questions