import pandas as pd
d = {'Belmont': 832.05420000000004,
'Cupertino': 860.44169999999997,
'Hillsborough': 951.95729537366503,
'Los Altos': 1011.239,
'Menlo Park': 877.91989999999998,
'Palo Alto': 1196.6677,
'Portola Valley': 883.11688311688295,
'San Francisco': 891.23050000000001,
'Tiburon': 924.68089999999995,
'Woodside': 831.98380566801609}
s = pd.Series(d)
s.sort()
what is method to get the position in this sorted list? e.g. in the above list "Belmont" is the 2nd.
s.values.searchsorted(s.loc["Belmont"])
is there a better way to do this?