update index reverse pandas code example Example 1: reverse pd based on index Click to copydata.iloc[::-1] Example 2: reverse pd based on index Click to copydata.reindex(index=data.index[::-1])