Collection.first#

Collection.first(onerror='raise') Calendar#

Returns a calendar with the first date each period in the collection.

Allowed values for the onerror parameter:
  • ‘skip’ to skip empty calendars

  • ‘raise’ to raise an error

Parameters:

onerror (str) – handling policy for empty calendars

Return type:

Calendar