Answers for "python pandas reverse index"

1

reverse pd based on index

data.iloc[::-1]
Posted by: Guest on October-01-2020
0

reverse pd based on index

data.reindex(index=data.index[::-1])
Posted by: Guest on October-01-2020

Python Answers by Framework

Browse Popular Code Answers by Language