How do I remove rows based on a range of dates given by values in 2 columns?
问题 I have a data set that includes a range of dates and need to fill in the missing dates in new rows. df1 is an example of the data I am working with and df2 is an example of what I've managed to achieve (where I'm stuck). df3 is where I would like to end up! df1 ID Date DateStart DateEnd 1 2/11/2021 2/11/2021 2/17/2021 1 2/19/2021 2/19/2021 2/21/2021 2 1/15/2021 1/15/2021 1/20/2021 2 1/22/2021 1/22/2021 1/23/2021 This is where I am with this. The NAs aren't an issue because I intend to drop