I have a df with date and price. Given a datetime, I would like to find the price at the nearest date.
This works for one input datetime:
exampledate = pd.