I assigned the dataframe to itself by reversing its index. But when I call it again, it's showing the old dataframe without reversing it.
apple = apple.reindex(index = apple.index[::-1])
apple.head()
Any help would be appreciated. Thanks in advance :)