For my current project I need to merge some dataframes based on time intervals. There are of course plenty of answers for this question, for example, I used answer from this que