consider the time series
and it's index
tidx = pd.date_range('2010-12-31', periods=3, freq='M')
s = pd.Series([0, 31, 59], tidx)
If I wanted to use
as a lookup series and passed the date
, I'd want to get the most recently available value. In this case that would be
This does the job, but I had to resample the whole series just to get a single value. What is a more appropriate way to do this?