# 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 :
", array)
print("Flipped array :
", np.flip(array, 0))
numpy.flip(array, axis)
numpy.flipud(array)
# 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 :
", array)
print("Flipped array :
", np.flipud(array))
# 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 :
", array)
print("Flipped array :
", np.fliplr(array))