Skip to content

Commit 65d2edb

Browse files
author
Matt Roeschke
committed
Adjust timeseries.rst
1 parent d115900 commit 65d2edb

File tree

1 file changed

+2
-23
lines changed

1 file changed

+2
-23
lines changed

doc/source/timeseries.rst

+2-23
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ In practice this becomes very cumbersome because we often need a very long
414414
index with a large number of timestamps. If we need timestamps on a regular
415415
frequency, we can use the :func:`date_range` and :func:`bdate_range` functions
416416
to create a ``DatetimeIndex``. The default frequency for ``date_range`` is a
417-
**day** while the default for ``bdate_range`` is a **business day**:
417+
**calendar day** while the default for ``bdate_range`` is a **business day**:
418418

419419
.. ipython:: python
420420
@@ -937,26 +937,6 @@ time information included in the operation.
937937
hour.apply(ts).normalize()
938938
hour.apply(pd.Timestamp("2014-01-01 23:30")).normalize()
939939
940-
.. _timeseries.dayvscalendarday:
941-
942-
Day vs. CalendarDay
943-
~~~~~~~~~~~~~~~~~~~
944-
945-
:class:`Day` (``'D'``) is a timedelta-like offset that respects absolute time
946-
arithmetic and is an alias for 24 :class:`Hour`. This offset is the default
947-
argument to many pandas time related function like :func:`date_range` and :func:`timedelta_range`.
948-
949-
:class:`CalendarDay` (``'CD'``) is a relativedelta-like offset that respects
950-
calendar time arithmetic. :class:`CalendarDay` is useful preserving calendar day
951-
semantics with date times with have day light savings transitions, i.e. :class:`CalendarDay`
952-
will preserve the hour before the day light savings transition.
953-
954-
.. ipython:: python
955-
956-
ts = pd.Timestamp('2016-10-30 00:00:00', tz='Europe/Helsinki')
957-
ts + pd.offsets.Day(1)
958-
ts + pd.offsets.CalendarDay(1)
959-
960940
961941
Parametric Offsets
962942
~~~~~~~~~~~~~~~~~~
@@ -1248,8 +1228,7 @@ frequencies. We will refer to these aliases as *offset aliases*.
12481228

12491229
"B", "business day frequency"
12501230
"C", "custom business day frequency"
1251-
"D", "day frequency"
1252-
"CD", "calendar day frequency"
1231+
"D", "calendar day frequency"
12531232
"W", "weekly frequency"
12541233
"M", "month end frequency"
12551234
"SM", "semi-month end frequency (15th and end of month)"

0 commit comments

Comments
 (0)