Answers for "NumPy fliplr Example"

0

NumPy fliplr Example

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

import numpy as np

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

print("Flipped array : \n", np.fliplr(array))
Posted by: Guest on April-27-2022

Python Answers by Framework

Browse Popular Code Answers by Language