## 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…

This author has written 49 articles

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

February 12, 2019

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.)…

February 12, 2019

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,…

February 12, 2019

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

February 12, 2019

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

February 12, 2019

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

February 12, 2019

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.…

February 12, 2019

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,…

February 12, 2019

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.…

February 12, 2019

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_ -…

February 12, 2019