Im trying to build a function that will check for a selected row values if they are unique with a 24 hours buffer (df is sorted by time). As the DF is sorted by time I w