Table Of Contents

Search

Enter search terms or a module, class or function name.

pandas.Timestamp.ceil

Timestamp.ceil

return a new Timestamp ceiled to this resolution

Parameters:
freq : a freq string indicating the ceiling resolution

ambiguous : bool, ‘NaT’, default ‘raise’

  • bool contains flags to determine if time is dst or not (note that this flag is only applicable for ambiguous fall dst dates)
  • ‘NaT’ will return NaT for an ambiguous time
  • ‘raise’ will raise an AmbiguousTimeError for an ambiguous time

New in version 0.24.0.

Raises:
ValueError if the freq cannot be converted
Scroll To Top