numpy.fromiter()This function is used to create a ndarray by using an iterable object. It returns a one-dimensional ndarray object. SyntaxParametersIt accepts the following parameters.
ReturnAn array created by using the iterable object is returned. ExampleOutput: [0. 2. 4. 6.] Next Topicnumpy.linspace() |