You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/source/timeseries.rst
+15-12
Original file line number
Diff line number
Diff line change
@@ -527,7 +527,7 @@ If the timestamp string is treated as a slice, it can be used to index ``DataFra
527
527
dft_minute['2011-12-31 23']
528
528
529
529
530
-
:: warning:
530
+
:: warning::
531
531
532
532
However if the string is treated as an exact match the selection in ``DataFrame``'s ``[]`` will be column-wise and not row-wise, see :ref:`Indexing Basics <indexing.basics>`. For example ``dft_minute['2011-12-31 23:59']`` will raise ``KeyError`` as ``'2012-12-31 23:59'`` has the same resolution as index and there is no column with such name:
533
533
@@ -688,12 +688,12 @@ We could have done the same thing with ``DateOffset``:
688
688
689
689
The key features of a ``DateOffset`` object are:
690
690
691
-
- it can be added / subtracted to/from a datetime object to obtain a
692
-
shifted date
693
-
- it can be multiplied by an integer (positive or negative) so that the
694
-
increment will be applied multiple times
695
-
- it has ``rollforward`` and ``rollback`` methods for moving a date forward
696
-
or backward to the next or previous "offset date"
691
+
- it can be added / subtracted to/from a datetime object to obtain a
692
+
shifted date
693
+
- it can be multiplied by an integer (positive or negative) so that the
694
+
increment will be applied multiple times
695
+
- it has ``rollforward`` and ``rollback`` methods for moving a date forward
696
+
or backward to the next or previous "offset date"
697
697
698
698
Subclasses of ``DateOffset`` define the ``apply`` function which dictates
699
699
custom date increment logic, such as adding business days:
@@ -805,7 +805,7 @@ used exactly like a ``Timedelta`` - see the
805
805
806
806
Note that some offsets (such as ``BQuarterEnd``) do not have a
807
807
vectorized implementation. They can still be used but may
808
-
calculate significantly slower and will raise a ``PerformanceWarning``
808
+
calculate significantly slower and will show a ``PerformanceWarning``
809
809
810
810
.. ipython:: python
811
811
:okwarning:
@@ -815,8 +815,8 @@ calculate significantly slower and will raise a ``PerformanceWarning``
815
815
816
816
.. _timeseries.custombusinessdays:
817
817
818
-
Custom Business Days (Experimental)
819
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
818
+
Custom Business Days
819
+
~~~~~~~~~~~~~~~~~~~~
820
820
821
821
The ``CDay`` or ``CustomBusinessDay`` class provides a parametric
822
822
``BusinessDay`` class which can be used to create customized business day
@@ -845,7 +845,7 @@ Let's map to the weekday names
845
845
846
846
pd.Series(dts.weekday, dts).map(pd.Series('Mon Tue Wed Thu Fri Sat Sun'.split()))
847
847
848
-
As of v0.14 holiday calendars can be used to provide the list of holidays. See the
848
+
Holiday calendars can be used to provide the list of holidays. See the
849
849
:ref:`holiday calendar<timeseries.holiday>` section for more information.
850
850
851
851
.. ipython:: python
@@ -1349,12 +1349,15 @@ limited to, financial applications.
1349
1349
See some :ref:`cookbook examples <cookbook.resample>` for some advanced strategies
1350
1350
1351
1351
Starting in version 0.18.1, the ``resample()`` function can be used directly from
1352
-
DataFrameGroupBy objects, see the :ref:`groupby docs <groupby.transform.window_resample>`.
1352
+
``DataFrameGroupBy`` objects, see the :ref:`groupby docs <groupby.transform.window_resample>`.
1353
1353
1354
1354
.. note::
1355
1355
1356
1356
``.resample()`` is similar to using a ``.rolling()`` operation with a time-based offset, see a discussion :ref:`here <stats.moments.ts-versus-resampling>`
0 commit comments