Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/source/ecosystem.rst
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ which are utilized by Jupyter Notebook for displaying
(Note: HTML tables may or may not be
compatible with non-HTML Jupyter output formats.)

See :ref:`Options and Settings <options>` and :ref:`options.available`
See :ref:`Options and Settings <options>` and :ref:`<options.available>`
for pandas ``display.`` settings.

`quantopian/qgrid <https://github.com/quantopian/qgrid>`__
Expand Down
14 changes: 7 additions & 7 deletions doc/source/timeseries.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1084,7 +1084,7 @@ in the usual way.
dt + bmth_us

# Define date index with custom offset
pd.DatetimeIndex(start='20100101', end='20120101', freq=bmth_us)
pd.date_range(start='20100101', end='20120101', freq=bmth_us)

.. note::

Expand Down Expand Up @@ -1438,8 +1438,8 @@ or ``Timestamp`` objects.

.. ipython:: python

pd.DatetimeIndex(start='7/1/2012', end='7/10/2012',
freq=pd.offsets.CDay(calendar=cal)).to_pydatetime()
pd.date_range(start='7/1/2012', end='7/10/2012',
freq=pd.offsets.CDay(calendar=cal)).to_pydatetime()
offset = pd.offsets.CustomBusinessDay(calendar=cal)
datetime.datetime(2012, 5, 25) + offset
datetime.datetime(2012, 7, 3) + offset
Expand Down Expand Up @@ -2300,8 +2300,8 @@ To remove timezone from tz-aware ``DatetimeIndex``, use ``tz_localize(None)`` or

.. ipython:: python

didx = pd.DatetimeIndex(start='2014-08-01 09:00', freq='H',
periods=10, tz='US/Eastern')
didx = pd.date_range(start='2014-08-01 09:00', freq='H',
periods=10, tz='US/Eastern')
didx
didx.tz_localize(None)
didx.tz_convert(None)
Expand Down Expand Up @@ -2354,8 +2354,8 @@ constructor as well as ``tz_localize``.
rng_hourly.tz_localize('US/Eastern', ambiguous=rng_hourly_dst).to_list()
rng_hourly.tz_localize('US/Eastern', ambiguous='NaT').to_list()

didx = pd.DatetimeIndex(start='2014-08-01 09:00', freq='H',
periods=10, tz='US/Eastern')
didx = pd.date_range(start='2014-08-01 09:00', freq='H',
periods=10, tz='US/Eastern')
didx
didx.tz_localize(None)
didx.tz_convert(None)
Expand Down