Is there a builtin function to "reverse index" a pandas data frame? For example, if the data frame represents time series data, and we iterate through the time series data, is there a builtin function to access the date for a given value?
# Let series be a pandas data frame with a column header and row labels as dates.
for i in series:
# do stuff
get date for this i
You could do
If there can be multiple dates for the same value, you could do