Period.max_ordinal#

property Period.max_ordinal: int#

Get the maximum valid ordinal

This is defined as the maximum ordinal value that you can pass to the datetime method and have Python not throw an error because the datetime is out of bounds (e.g. prior to year 0 or after year 9999)

Returns:

The maximum ordinal value of this Period