Skip to main content

All Questions

Filter by
Sorted by
Tagged with
2 votes
3 answers
733 views

Pure python or itertools group a list of dates by days difference between each date

Having a list of dates ordered: [ datetime.date(2006, 8, 15), datetime.date(2006, 9, 12), datetime.date(2007, 8, 10), datetime.date(2021, 4, 6), datetime.date(2021, 4, 16), datetime.date(2021, 4, 19) ....
lsgrep's user avatar
  • 33