NumPy Tutorial - NumPy Math Operation and Broadcasting
We’ll cover operations in NumPy in this chapter, like basic arithmetic operations and matrix operations. Let’s start with basic arithmetic operation. NumPy Arithmetic Operation Addition, subtraction, multiplication and division are the most basic arithmetic operations in NumPy. They are similar to normal arithmetic operations between numbers. import numpy as np arrayA = np.array([[1, 2, 3],[4, 5, 6],[7, 8, 9]]) arrayB = arrayA.T #array([[1, 2, 3], # [4, 5, 6], # [7, 8, 9]]) arrayB = arrayA.
Jun 25, 2020
Most Popular Articles

NumPy Tutorial - NumPy Array Append
Jun 25, 2020

NumPy Tutorial - NumPy Array Reshape and Resize
Jan 30, 2023

NumPy Tutorial - NumPy Data Type and Conversion
Jul 18, 2021
Recently Updated Articles

NumPy Tutorial - NumPy Array Reshape and Resize
Jan 30, 2023

NumPy Tutorial - NumPy Array Creation
Jul 18, 2021

NumPy Tutorial - NumPy Data Type and Conversion
Jul 18, 2021

NumPy Tutorial - Introduction and Installation
Jul 18, 2021

NumPy Tutorial - NumPy Array Append
Jun 25, 2020