In this tutorial, we will cover numpy.arange() function of the Numpy library which is used for array creation. The NumPy arange() function is one of the array creation routines that is usually based on numerical ranges. This method basically creates an instance of ndarray with evenly spaced values and returns the reference to it. Syntax of numpy.arange() Below we haveContinue Reading

In this tutorial, we will cover the concept of Multiplication of two Matrix in the NumPy library. Also, as the NumPy library is mainly used for manipulation and array-processing, so this is a very important concept. In NumPy, the Multiplication of matrix is basically an operation where we take two matrices as input and multiply rows ofContinue Reading

In this tutorial, we will learn how to iterate over any given array to one by one access all the available elements in the array (array iteration) in the NumPy library. The numpy.nditer is an iterator object provided by the Numpy library. Example 1 Let us take a look at an exampleContinue Reading

In this tutorial, we will cover the concept of copy and view, for ndarray in the NumPy library. In Numpy, using the copy() and view() functions, we can create a new copy of any existing array or create a new view for the array. Let us take a look at what is the majorContinue Reading

In this tutorial, we will cover the concept of sorting of ndarray elements in the NumPy library. Sorting is basically a process where elements are arranged in an ordered sequence. The kind of sorting algorithm that is to be used in the sort operation must be mentioned in the function call.Continue Reading

In this tutorial, we will cover the concept of broadcasting in the NumPy library. Sometimes while doing mathematical operations we need to consider arrays of different shapes. With the help of Numpy library, one is allowed to perform operations on arrays of different shapes. Suppose you want to add two matrices andContinue Reading

In this tutorial, we will cover advance indexing of ndarray elements in the Python NumPy library. The slicing in NumPy array is only used to present a view whereas advanced indexing always returns a copy of the data. If you wish to select random numbers from different rows in an ndarray, and theContinue Reading

In this tutorial, we will cover Indexing and Slicing in the Numpy Library of Python. To access and modify the contents of ndarray object in Numpy Library indexing or slicing can be done just like the Python’s in-built container object. We had also mentioned in our previous tutorials, that items in the ndarray object always follow zero-based index. NumpyContinue Reading

In this tutorial, we will cover how to create an array using existing data in the Numpy Library. The Numpy library provides various ways to create an array from the existing data and these are as given below: Now we will cover the above mentioned one by one in our upcoming sections.Continue Reading