Skip to main content

Posts

Showing posts with the label data science

Learn NumPy - Free tutorial

NumPy stands for numerical python and is a python library used for working with arrays. It has functions for working in the domains of linear algebra, fourier transform and matrices. It was created in 2005 by Travis Oliphant and is an open source project that can be used freely. Why Use NumPy Python has lists that serve the purpose of arrays but they are slow too process. NumPy aims to provide an array object that is up to 50x faster than traditional python lists. the array object in NumPy is called ndarray. It provides a lot of supporting functions that make working with ndarray very easy. NumPy arrays are stored at one continuous place in memory unlike lists, so processes can access and manipulate them very efficiently. this behaviour is called locality of reference in computer science. It is also optimized to work with the latest CPU architecture. This is why NumPy is faster than lists. NumPy is written partially in python but most of the parts that require fast computation are writ