pandas.Timestamp.replace

Timestamp.replace(year=None, month=None, day=None, hour=None, minute=None, second=None, microsecond=None, nanosecond=None, tzinfo=<class 'object'>, fold=0)

implements datetime.replace, handles nanoseconds.

Parameters
yearint, optional
monthint, optional
dayint, optional
hourint, optional
minuteint, optional
secondint, optional
microsecondint, optional
nanosecondint, optional
tzinfotz-convertible, optional
foldint, optional, default is 0
Returns
Timestamp with fields replaced