pandas.tseries.offsets.Day — pandas 3.0.0.dev0+2104.ge637b4290d documentation (original) (raw)
- API reference
- Date offsets
- pandas.tseries.offsets.Day
class pandas.tseries.offsets.Day#
Offset n
days.
Attributes
See also
Standard kind of date increment.
Examples
You can use the parameter n
to represent a shift of n days.
from pandas.tseries.offsets import Day ts = pd.Timestamp(2022, 12, 9, 15) ts Timestamp('2022-12-09 15:00:00')
ts + Day() Timestamp('2022-12-10 15:00:00') ts - Day(4) Timestamp('2022-12-05 15:00:00')
ts + Day(-4) Timestamp('2022-12-05 15:00:00')
Attributes
Methods