Answers for "NumPy rot90 Example Rotating Three times"

0

NumPy rot90 Example Rotating Three times

# welcome to softhunt.net
# Python Program illustrating
# numpy.rot90() method

import numpy as np

array = np.arange(9).reshape(3, 3)
print("Original array : \n", array)

# # Rotating three times
print("\nArray being rotated 3 times : \n", np.rot90(array, 3))
Posted by: Guest on April-27-2022

Python Answers by Framework

Browse Popular Code Answers by Language