Skip to content

Commit 1678f14

Browse files
committed
DOC: small edits in timeseries.rst
1 parent 3ab369c commit 1678f14

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

doc/source/timeseries.rst

+15-12
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ If the timestamp string is treated as a slice, it can be used to index ``DataFra
527527
dft_minute['2011-12-31 23']
528528
529529
530-
:: warning:
530+
:: warning::
531531

532532
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:
533533

@@ -688,12 +688,12 @@ We could have done the same thing with ``DateOffset``:
688688
689689
The key features of a ``DateOffset`` object are:
690690

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"
697697

698698
Subclasses of ``DateOffset`` define the ``apply`` function which dictates
699699
custom date increment logic, such as adding business days:
@@ -805,7 +805,7 @@ used exactly like a ``Timedelta`` - see the
805805
806806
Note that some offsets (such as ``BQuarterEnd``) do not have a
807807
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``
809809

810810
.. ipython:: python
811811
:okwarning:
@@ -815,8 +815,8 @@ calculate significantly slower and will raise a ``PerformanceWarning``
815815
816816
.. _timeseries.custombusinessdays:
817817

818-
Custom Business Days (Experimental)
819-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
818+
Custom Business Days
819+
~~~~~~~~~~~~~~~~~~~~
820820

821821
The ``CDay`` or ``CustomBusinessDay`` class provides a parametric
822822
``BusinessDay`` class which can be used to create customized business day
@@ -845,7 +845,7 @@ Let's map to the weekday names
845845
846846
pd.Series(dts.weekday, dts).map(pd.Series('Mon Tue Wed Thu Fri Sat Sun'.split()))
847847
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
849849
:ref:`holiday calendar<timeseries.holiday>` section for more information.
850850

851851
.. ipython:: python
@@ -1349,12 +1349,15 @@ limited to, financial applications.
13491349
See some :ref:`cookbook examples <cookbook.resample>` for some advanced strategies
13501350

13511351
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>`.
13531353

13541354
.. note::
13551355

13561356
``.resample()`` is similar to using a ``.rolling()`` operation with a time-based offset, see a discussion :ref:`here <stats.moments.ts-versus-resampling>`
13571357

1358+
Basics
1359+
~~~~~~
1360+
13581361
.. ipython:: python
13591362
13601363
rng = pd.date_range('1/1/2012', periods=100, freq='S')

0 commit comments

Comments
 (0)