How can I get the integer key location for the pandas index as quickly as possible?
for example, given pd.DataFrame(data=np.asarray([[1,2,3],[4,5,6],[7,8,9]]), index=['alice', 'bob', 'charlie'])
what is the fastest way to go from "bob" to 1
source share