重新索引
对Series的索引进行重新索引
In [64]: import pandas as pd
In [65]: obj=pd.Series([4.5,7.2,-5.3,3.6],index=['d','b','a','c'])
In [66]: obj
Out[66]:
d 4.5
b 7.2
a -5.3
c 3.6
dtype: float64
In [67]: obj2=obj.reindex(['a','b','c','d','e'])
In [