Calendar.snap#

Calendar.snap(other, fallback='drop') Calendar#

Combines this calendar with other, such as:

  • Dates in both calendars are kept

  • Dates in this calendar but not in other are either dropped or replaced with either the first previous or following date in other

Parameters:
  • other (iterable) – other calendar

  • fallback (str) – one of ‘drop’, ‘previous’ (a.k.a. ffill), ‘next’ (a.k.a. bfill)

Return type:

Calendar