| 1588 | | "Returns a date converted to a specified frequency.\n\n" |
|---|
| 1589 | | "*Parameters*:\n" |
|---|
| 1590 | | " freq : {freq_spec}\n" |
|---|
| 1591 | | " Frequency to convert the Date to. Accepts any valid frequency\n" |
|---|
| 1592 | | " specification (string or integer)\n" |
|---|
| 1593 | | " relation : {'END', 'START'} (optional)\n" |
|---|
| 1594 | | " Applies only when converting a lower frequency Date to a higher\n" |
|---|
| 1595 | | " frequency Date, or when converting a weekend Date to a business\n" |
|---|
| 1596 | | " frequency Date. Valid values are 'START' and 'END'."; |
|---|
| | 1588 | " asfreq(freq, relation='END')\n" |
|---|
| | 1589 | "\n" |
|---|
| | 1590 | " Returns a date converted to a specified frequency.\n" |
|---|
| | 1591 | "\n" |
|---|
| | 1592 | " Parameters\n" |
|---|
| | 1593 | " ----------\n" |
|---|
| | 1594 | " freq : {freq_spec}\n" |
|---|
| | 1595 | " Frequency to convert the Date to. Accepts any valid frequency\n" |
|---|
| | 1596 | " specification (string or integer)\n" |
|---|
| | 1597 | "\n" |
|---|
| | 1598 | " relation : {'END', 'START'} (optional)\n" |
|---|
| | 1599 | " Applies only when converting a lower frequency Date to a higher\n" |
|---|
| | 1600 | " frequency Date, or when converting a weekend Date to a business\n" |
|---|
| | 1601 | " frequency Date. Valid values are 'START' and 'END'. For example, if you\n" |
|---|
| | 1602 | " converting a monthly date to daily frequency, relation='START' will\n" |
|---|
| | 1603 | " give you the first day of the month while relation='END' will give\n" |
|---|
| | 1604 | " you the last day of the month.\n" |
|---|
| | 1605 | "\n" |
|---|
| | 1606 | " Examples\n" |
|---|
| | 1607 | " --------\n" |
|---|
| | 1608 | " >>> D = ts.Date('D', year=2007, month=12, day=31)\n" |
|---|
| | 1609 | " >>> D.asfreq('M')\n" |
|---|
| | 1610 | " <M: Dec-2006>\n" |
|---|
| | 1611 | " >>> D.asfreq('M').asfreq('D', relation='START')\n" |
|---|
| | 1612 | " <D: 01-Dec-2006>\n" |
|---|
| | 1613 | " >>> D.asfreq('M').asfreq('D', relation='END')\n" |
|---|
| | 1614 | " <D: 31-Dec-2006>\n"; |
|---|
| | 1615 | |
|---|