addMonths
Adds calendar months to a DATETIME or DATE column (ADR-2026-10-30-02): UTC civil arithmetic; the day clamps to the target month's end (Jan 31 + 1mo -> Feb 28/29); DATETIME keeps its time of day; negative offsets are symmetric; nulls propagate.
Parameters
s | the DATETIME or DATE Series |
months | the signed month count |
Returns
the shifted Series (same kind).
Throws
DataFrameException on non-calendar kinds.