

.. _sphx_glr_auto_examples_reindex:

Reindex function
__________________

Example on how to reindex two time-series.



.. raw:: html

    <div class="sphx-glr-thumbnails">

.. thumbnail-parent-div-open

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="When working with multiple time series it is often important that time stamps are aligned. Even simple operations, like addition and subtraction of time series, require time stamp alignment. In this example, we demonstrate how re-indexing can be used to align time stamps.">

.. only:: html

  .. image:: /auto_examples/reindex/images/thumb/sphx_glr_plot_reindex_and_pearson_correlation_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_reindex_plot_reindex_and_pearson_correlation.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Re-indexing and compute Pearson correlation coefficient</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This shows how we can superimpose a scatter plot on an existing chart">

.. only:: html

  .. image:: /auto_examples/reindex/images/thumb/sphx_glr_plot_mock_scatter_plot_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_reindex_plot_mock_scatter_plot.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Re-indexing to mock a scatter plot</div>
    </div>


.. thumbnail-parent-div-close

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/reindex/plot_reindex_and_pearson_correlation
   /auto_examples/reindex/plot_mock_scatter_plot

