Home
What's New in 1.1.0
Getting started
User Guide
API reference
Development
Release Notes
Input/output
General functions
Series
DataFrame
Pandas arrays
pandas.array
pandas.Timestamp
pandas.Timestamp.asm8
pandas.Timestamp.day
pandas.Timestamp.dayofweek
pandas.Timestamp.dayofyear
pandas.Timestamp.days_in_month
pandas.Timestamp.daysinmonth
pandas.Timestamp.fold
pandas.Timestamp.hour
pandas.Timestamp.is_leap_year
pandas.Timestamp.is_month_end
pandas.Timestamp.is_month_start
pandas.Timestamp.is_quarter_end
pandas.Timestamp.is_quarter_start
pandas.Timestamp.is_year_end
pandas.Timestamp.is_year_start
pandas.Timestamp.max
pandas.Timestamp.microsecond
pandas.Timestamp.min
pandas.Timestamp.minute
pandas.Timestamp.month
pandas.Timestamp.nanosecond
pandas.Timestamp.quarter
pandas.Timestamp.resolution
pandas.Timestamp.second
pandas.Timestamp.tz
pandas.Timestamp.tzinfo
pandas.Timestamp.value
pandas.Timestamp.week
pandas.Timestamp.weekofyear
pandas.Timestamp.year
pandas.Timestamp.astimezone
pandas.Timestamp.ceil
pandas.Timestamp.combine
pandas.Timestamp.ctime
pandas.Timestamp.date
pandas.Timestamp.day_name
pandas.Timestamp.dst
pandas.Timestamp.floor
pandas.Timestamp.freq
pandas.Timestamp.freqstr
pandas.Timestamp.fromordinal
pandas.Timestamp.fromtimestamp
pandas.Timestamp.isocalendar
pandas.Timestamp.isoformat
pandas.Timestamp.isoweekday
pandas.Timestamp.month_name
pandas.Timestamp.normalize
pandas.Timestamp.now
pandas.Timestamp.replace
pandas.Timestamp.round
pandas.Timestamp.strftime
pandas.Timestamp.strptime
pandas.Timestamp.time
pandas.Timestamp.timestamp
pandas.Timestamp.timetuple
pandas.Timestamp.timetz
pandas.Timestamp.to_datetime64
pandas.Timestamp.to_numpy
pandas.Timestamp.to_julian_date
pandas.Timestamp.to_period
pandas.Timestamp.to_pydatetime
pandas.Timestamp.today
pandas.Timestamp.toordinal
pandas.Timestamp.tz_convert
pandas.Timestamp.tz_localize
pandas.Timestamp.tzname
pandas.Timestamp.utcfromtimestamp
pandas.Timestamp.utcnow
pandas.Timestamp.utcoffset
pandas.Timestamp.utctimetuple
pandas.Timestamp.weekday
pandas.arrays.DatetimeArray
pandas.DatetimeTZDtype
pandas.Timedelta
pandas.Timedelta.asm8
pandas.Timedelta.components
pandas.Timedelta.days
pandas.Timedelta.delta
pandas.Timedelta.freq
pandas.Timedelta.is_populated
pandas.Timedelta.max
pandas.Timedelta.microseconds
pandas.Timedelta.min
pandas.Timedelta.nanoseconds
pandas.Timedelta.resolution
pandas.Timedelta.seconds
pandas.Timedelta.value
pandas.Timedelta.view
pandas.Timedelta.ceil
pandas.Timedelta.floor
pandas.Timedelta.isoformat
pandas.Timedelta.round
pandas.Timedelta.to_pytimedelta
pandas.Timedelta.to_timedelta64
pandas.Timedelta.to_numpy
pandas.Timedelta.total_seconds
pandas.arrays.TimedeltaArray
pandas.Period
pandas.Period.day
pandas.Period.dayofweek
pandas.Period.dayofyear
pandas.Period.days_in_month
pandas.Period.daysinmonth
pandas.Period.end_time
pandas.Period.freq
pandas.Period.freqstr
pandas.Period.hour
pandas.Period.is_leap_year
pandas.Period.minute
pandas.Period.month
pandas.Period.ordinal
pandas.Period.quarter
pandas.Period.qyear
pandas.Period.second
pandas.Period.start_time
pandas.Period.week
pandas.Period.weekday
pandas.Period.weekofyear
pandas.Period.year
pandas.Period.asfreq
pandas.Period.now
pandas.Period.strftime
pandas.Period.to_timestamp
pandas.arrays.PeriodArray
pandas.PeriodDtype
pandas.Interval
pandas.Interval.closed
pandas.Interval.closed_left
pandas.Interval.closed_right
pandas.Interval.is_empty
pandas.Interval.left
pandas.Interval.length
pandas.Interval.mid
pandas.Interval.open_left
pandas.Interval.open_right
pandas.Interval.overlaps
pandas.Interval.right
pandas.arrays.IntervalArray
pandas.IntervalDtype
pandas.arrays.IntegerArray
pandas.Int8Dtype
pandas.Int16Dtype
pandas.Int32Dtype
pandas.Int64Dtype
pandas.UInt8Dtype
pandas.UInt16Dtype
pandas.UInt32Dtype
pandas.UInt64Dtype
pandas.CategoricalDtype
pandas.CategoricalDtype.categories
pandas.CategoricalDtype.ordered
pandas.Categorical
pandas.Categorical.from_codes
pandas.Categorical.dtype
pandas.Categorical.categories
pandas.Categorical.ordered
pandas.Categorical.codes
pandas.Categorical.__array__
pandas.arrays.SparseArray
pandas.SparseDtype
pandas.arrays.StringArray
pandas.StringDtype
pandas.arrays.BooleanArray
pandas.BooleanDtype
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