| 912 | | TimeSeries: |
|---|
| 913 | | <<<<<<< .mine |
|---|
| 914 | | A new TimeSeries with the `.dates` attribute at the specified frequency |
|---|
| 915 | | (the :meth:`.asfreq` method of the :attr:`.dates` |
|---|
| 916 | | ======= |
|---|
| 917 | | A new TimeSeries with the :attr:`.dates` :class:`DateArray` at the |
|---|
| 918 | | specified frequency (the :meth`.asfreq` method of the :attr:`.dates` |
|---|
| 919 | | >>>>>>> .r1253 |
|---|
| 920 | | property will be called). |
|---|
| 921 | | The data in the resulting series will be a VIEW of the original series. |
|---|
| | 913 | A new TimeSeries with the :attr:`.dates` :class:`DateArray` at the |
|---|
| | 914 | specified frequency (the :meth`.asfreq` method of the :attr:`.dates` |
|---|
| | 915 | property will be called). |
|---|
| | 916 | The data in the resulting series will be a VIEW of the original series. |
|---|
| 1609 | | The input series should not have any missing nor duplicated dates. |
|---|
| 1610 | | |
|---|
| 1611 | | When converting from one frequency to a lower one, use the ``func`` parameter |
|---|
| 1612 | | to control how data sharing the same new date should be handled. For example, |
|---|
| 1613 | | when converting a daily series to a monthly series, use ``numpy.ma.mean`` |
|---|
| 1614 | | to get a series of monthly averages. |
|---|
| 1615 | | If ``func`` is not given, the output series group the points of the initial |
|---|
| 1616 | | series that share the same new date. For example, if the initial series has |
|---|
| 1617 | | a daily frequency and is 1D, the output series is 2D. |
|---|
| 1618 | | |
|---|
| 1619 | | When converting to a higher frequency, use the ``position`` parameter to |
|---|
| 1620 | | determine where the points should fall in the new period. |
|---|
| 1621 | | For example, when converting a monthly series to daily, set ``precision`` |
|---|
| 1622 | | to ``'START'`` to force the points to fall on the first of each month. |
|---|
| | 1599 | |
|---|
| | 1600 | If the input series has any missing dates, it will first be filled in with |
|---|
| | 1601 | masked values prior to doing the conversion. |
|---|
| 1632 | | func : {None,function}, optional |
|---|
| 1633 | | Function controlling how data sharing the same new dates should be |
|---|
| 1634 | | manipulated. |
|---|
| 1635 | | This function should handle masked values appropriately. |
|---|
| 1636 | | If ``func`` is None (default), the output series groups the points of the |
|---|
| 1637 | | initial series that share the same new date. |
|---|
| 1638 | | The parameter is used only when converting to a lower frequency. |
|---|
| | 1611 | func : function, optional |
|---|
| | 1612 | When converting a series to a lower frequency, you can use the |
|---|
| | 1613 | ``func`` parameter to perform a calculation on each period of values |
|---|
| | 1614 | to aggregate results. |
|---|
| | 1615 | For example, when converting a daily series to a monthly series, use |
|---|
| | 1616 | :func:`numpy.ma.mean` to get a series of monthly averages. If you wish |
|---|
| | 1617 | to get the first or last value from a period, use the functions |
|---|
| | 1618 | :func:`scikits.timeseries.first_unmasked_val` and |
|---|
| | 1619 | :func:`scikits.timeseries.last_unmasked_val`. |
|---|
| | 1620 | If ``func`` is not given, the output series group the points of the |
|---|
| | 1621 | initial series that share the same new date. For example, if the |
|---|
| | 1622 | initial series has a daily frequency and is 1D, the output series is |
|---|
| | 1623 | 2D. |
|---|
| 1640 | | Determines whether the points should fall at the beginning (``'START'``) |
|---|
| 1641 | | or at the end (``'END'``) of the new period. |
|---|
| | 1625 | When converting a series to a higher frequency, use this parameter to |
|---|
| | 1626 | determine where the points should fall in the new period. |
|---|
| | 1627 | For example, when converting a monthly series to daily, specifying |
|---|
| | 1628 | position='START' will cause the values to fall on the first day of |
|---|
| | 1629 | each month (with all other values being masked). |
|---|