reverse pandas dataframe code example
Example 1: reverse pd based on index
data.iloc[::-1]
Example 2: how to reverse the order of columns in matrix in python
np.fliplr(matrix) will reverse the columns order in a np.array
data.iloc[::-1]
np.fliplr(matrix) will reverse the columns order in a np.array