Skip to main content

why we use Numpy in python

 

why we use NumPy in python


NumPy is a general-purpose array-processing package. It provides a high-performance multidimensional array object and tools for working with these arrays. It is the fundamental package for scientific computing with Python.



 A powerful N-dimensional array object.

Syntex:-  

import numpy

arr = numpy.array([12345])

print(arr)

    Output:-   [1 2 3 4 5]


NumPy is a basic level external library in Python used for complex mathematical operations. NumPy overcomes slower executions with the use of multi-dimensional array objects. It has built-in functions for manipulating arrays. We can convert different algorithms to can into functions for applying on arrays.

 NumPy arrays are faster and more compact than Python lists. An array consumes less memory and is convenient to useNumPy uses much less memory to store data and it provides a mechanism of specifying the data types.

Comments

  1. Excellent post. You have shared some wonderful tips. I completely agree with you that it is important for any blogger to help their visitors. Once your visitors find value in your content, they will come back for more What is the Python



    ReplyDelete

Post a Comment

If you have any doubts, Please let me know