## Sort, Search and & Counting

Sort, Search and Counting Functions A.) Sorting functions 1.) sort(): It returns a sorted copy of the array. It takes parameters (array, axis, kind). Here for parameters axis means either along…

Comments Off on Sort, Search and & Counting

## Statistical Functions

Statistical Functions Numpy has many useful statistical functions for calculating mean, minimum across any axis, variances etc. 1.) Order Statistics   a.) Numpy.amin(): Returns the minimum across any axis.   b.)…

## Mathematical Functions

Mathematical Functions 1. Trigonometric Functions A.) sin: Trigonometric sine elementwise. It has input an angle which is in radians(2*pie rad = 360 degrees). It has some similar functions to calculate cosine,…

## Binary Operators

Binary Operators Here are some functions in Numpy to perform binary operations. We will discuss them through example too. 1. bitwise_and: It basically performs AND operation between numbers for each…

Comments Off on Binary Operators

## Array Manipulation

Array Manipulation Array manipulation has some routines for performing the operations on array-like reshaping, transpose. etc. Let's discuss some usable and important routines. Let's start. 1. Changing array shape A.)Reshape(a,…

Comments Off on Array Manipulation

## Iterating over arrays

Iterating Over Array Numpy package contains an iterator object Numpy.nditer. It is an efficient multi-dimensional iterator object using which it is possible to iterate over an array. Each element of…

Comments Off on Iterating over arrays

## Indexing and Slicing

Indexing and Slicing Array indexing refers to any use of the square brackets ([]) to index array values. There are many options to indexing, which give Numpy indexing great power.…

## Array Creation

Array Creation There are 5 general mechanisms for creating Numpy arrays are: 1. Conversion from other Python structures (e.g. lists, tuples). 2. Intrinsic Numpy array creation objects (e.g. arange, ones,…

## Array Attributes

Array Attributes There are some important attributes we are going to discuss over here. Just don't confuse or muddle up with some, as some of them almost have similar functions.…

## Data Types

Numpy is supporting a large number of data types than python does. Let's see the data types with examples: bool_ - It will store boolean values(True or False). int_ -…