[python] Access index of last element in data frame