numpy.fliplr() in Python Last Updated : 08 Mar, 2024 Comments Improve Suggest changes Like Article Like Report numpy.fliplr(array) : Flip array(entries in each column) in left-right direction, shape preserved Parameters : array : [array_like]Input array, we want to flip Return : Flipped array in left-right direction. Python # Python Program illustrating # numpy.fliplr() method import numpy as geek array = geek.arange(8).reshape((2,2,2)) print("Original array : \n", array) # fliplr : means flip left-right print("\nFlipped array left-right : \n", geek.fliplr(array)) Output : Original array : [[[0 1] [2 3]] [[4 5] [6 7]]] Flipped array left-right : [[[2 3] [0 1]] [[6 7] [4 5]]] Note : These codes won’t run on online IDE's. Please run them on your systems to explore the working. Comment More infoAdvertise with us Next Article numpy.fliplr() in Python M Mohit Gupta Improve Article Tags : Misc Python Python-numpy Python numpy-arrayManipulation Practice Tags : Miscpython Similar Reads numpy.flip() in Python The numpy.flip() function reverses the order of array elements along the specified axis, preserving the shape of the array. Syntax: numpy.flip(array, axis) Parameters : array : [array_like]Array to be input axis : [integer]axis along which array is reversed. Returns : reversed array with shape pr 1 min read numpy.flipud() in Python The numpy.flipud() function flips the array(entries in each column) in up-down direction, shape preserved. Syntax: numpy.flipud(array) Parameters : array : [array_like]Input array, we want to flip Return : Flipped array in up-down direction.Python # Python Program illustrating # numpy.flipud() me 1 min read numpy.invert() in Python numpy.invert() is a bitwise function in NumPy used to invert each bit of an integer array. It performs a bitwise NOT operation, flipping 0s to 1s and 1s to 0s in the binary representation of integers. Example:Pythonimport numpy as np a = np.array([1, 2, 3]) res = np.invert(a) print(res)Output[-2 -3 2 min read numpy.binary_repr() in Python numpy.binary_repr(number, width=None) function is used to represent binary form of the input number as a string. For negative numbers, if width is not given, a minus sign is added to the front. If width is given, the twoâs complement of the number is returned, with respect to that width. In a twoâs- 3 min read numpy.rot90() in Python The numpy.rot90() method performs rotation of an array by 90 degrees in the plane specified by axis(0 or 1). Syntax: numpy.rot90(array, k = 1, axes = (0, 1)) Parameters : array : [array_like]i.e. array having two or more dimensions. k : [optional , int]No. of times we wish to rotate array by 90 degr 2 min read Like