Add dt.replace
functions to specify specific day, month, year, etc. for date
and datetime
#15794
Labels
enhancement
New feature or an improvement of an existing feature
Description
The native
datetime
has.replace
functions that allow the user to change the day, month, year, etc. to specific values:This would be useful for our
Date
andDatetime
dtypes as well:This can currently be achieved via
s.dt.truncate("1mo").dt.offset_by("9d")
but it's a bit ugly.The text was updated successfully, but these errors were encountered: