# Mohan

## Remove Last element from a NumPy Array in Python

In this article we will learn how to remove last element from a NumPy Array. Given a NumPy array, we need to remove last element from a NumPy Array i.e. delete the element at the last index ofthe array. There are multiple ways to remove last element from a NumPy Array. Lets discuss all the […]

## Remove First element from a NumPy Array in Python

In this article, we will discuss different ways to remove first element from a NumPy Array. Given a NumPy array, we need to remove first element from the NumPy Array i.e. delete the element at the index position 0 from the the array. There are multiple ways to remove first element from a NumPy Array.

## Check if 2D NumPy Array or Matrix is Symmetric

In this article we will learn how to check if 2D NumPy array or matrix is symmetric. Given a NumPy array we need to check if it is symmetric. It means, if the given array and its transpose are equal then we can say that the given array is symmetric. The transpose of a matrix

## Sort a NumPy Array in descending order in Python

In this article we will learn how to sort a NumPy Array in descending order. Table Of Contents Sort NumPy Array in decreasing order using sort() Sort 2D NumPy Array in decreasing Order Row-wise Sort 2D NumPy Array in decreasing Order Column-wise Sort NumPy Array in decreasing order using sort() and flip() Given a NumPy

## Remove duplicates from NumPy Array in Python

In this article, we will learn how remove duplicate elements or rows or columns from a NumPy Array in Python. Table Of Contents Remove duplicates from NumPy Array using unique() method Delete duplicate elements from 1D NumPy Array Delete duplicate rows from 2D NumPy Array Delete duplicate columns from 2D NumPy Array Remove duplicates from

## Check if two NumPy Arrays are equal in Python

In this article we will learn How to check if two NumPy Arrays are equal. Table Of Contents Using == operator and all() method Using array_equal() method Flattening the arrays and comparing elements one-by-one Flattening the arrays using ravel() method and comparing elements one-by-one Using array_equiv() method Using Numpy nditer() method Using allclose() method Given

Scroll to Top