Home
What's New in 1.0.0
Getting started
User Guide
API reference
Development
Release Notes
Input/output
General functions
Series
DataFrame
Pandas arrays
pandas.array
Panel
Index objects
Date offsets
Window
GroupBy
Resampling
Style
Plotting
General utility functions
Extensions
pandas.Timestamp.replace
¶
Timestamp.
replace
(
self
,
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
year
int, optional
month
int, optional
day
int, optional
hour
int, optional
minute
int, optional
second
int, optional
microsecond
int, optional
nanosecond
int, optional
tzinfo
tz-convertible, optional
fold
int, optional, default is 0
Returns
Timestamp with fields replaced
pandas.Timestamp.now
pandas.Timestamp.round