import pandas as pdseries1=pd.Series([1,2,3,4],index=[0,9,8,7])print(series1[ : :-1])
Standard input is empty
7 4 8 3 9 2 0 1 dtype: int64
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!