def asof(self, label):
        try:
            loc = self.get_loc(label, method='pad')
        except KeyError:
            return _get_na_value(self.dtype)
        else:
            if isinstance(loc, slice):
                loc = loc.indices(len(self))[-1]
            return self[loc]
Convert a list of custom targets to a list of dictionaries
dataset/ETHPy150Open pydata/pandas/pandas/indexes/base.py/Index.asof--crossover with--dataset/ETHPy150Open chartbeat-labs/parselmouth/parselmouth/adapters/dfp/targeting_utils.py/_custom_target_list_to_child_list