@@ -414,7 +414,7 @@ In practice this becomes very cumbersome because we often need a very long
414
414
index with a large number of timestamps. If we need timestamps on a regular
415
415
frequency, we can use the :func: `date_range ` and :func: `bdate_range ` functions
416
416
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 **:
418
418
419
419
.. ipython :: python
420
420
@@ -937,26 +937,6 @@ time information included in the operation.
937
937
hour.apply(ts).normalize()
938
938
hour.apply(pd.Timestamp(" 2014-01-01 23:30" )).normalize()
939
939
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
-
960
940
961
941
Parametric Offsets
962
942
~~~~~~~~~~~~~~~~~~
@@ -1248,8 +1228,7 @@ frequencies. We will refer to these aliases as *offset aliases*.
1248
1228
1249
1229
"B", "business day frequency"
1250
1230
"C", "custom business day frequency"
1251
- "D", "day frequency"
1252
- "CD", "calendar day frequency"
1231
+ "D", "calendar day frequency"
1253
1232
"W", "weekly frequency"
1254
1233
"M", "month end frequency"
1255
1234
"SM", "semi-month end frequency (15th and end of month)"
0 commit comments