Help with flipping the rows instead of columns

Where is the part of this code that flips the columns and how do I replace it with the logic that flips rows instead?

def flipIt(array):
    for i in range(len(array)):
        length = len(array[i])
        for j in range(length // 2):
            temp = array[i][j]
            array[i][j] = array[i][length - 1 - j]
            array[i][length - 1 - j] = temp


You already have a topic discussing this.

Please do not create duplicate topics. I have closed this thread.