Quantcast
Channel: Active questions tagged excel - Stack Overflow
Viewing all articles
Browse latest Browse all 88809

Find overlapping dates of 2 different tables for each ID In Python / Pandas /Excel

$
0
0

The 2 tables have multiple date ranges for each ID, the total number of ID around 40k.

Its expected that each ID date range in each table don't overlap, but the overlap happens between the two tables: In this example of 2 different ID's, there is n overlap between the date ranges between table 1 and table 2, so I need to find across the whole dataframe, which records in table 1 overlaps with dates in table 2 for each ID.

Table 1

table1

Table 2

l


Viewing all articles
Browse latest Browse all 88809

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>