pandas.tseries.offsets.BaseOffset.rollforward

pandas 3.1.1 · Date offsets and frequencies · method

Keep an on-schedule date or move it forward to the nearest offset date.

Call syntax

BaseOffset.rollforward(dt)

Run the example

Edit the example and select Run Python to see the result.

Parameters

ParameterRequirementAccepted values and behavior
dt Required
Positional or keyword
datetime or Timestamp

Provide the date or datetime for the boundary or offset calculation.

Returns

Timestamp