Calendar¶
The date as a number, the same for every stock on a day.
day_of_week¶
day_of_week()
0 (Monday) to 6 (Sunday). The toy data runs Tuesday Jan 02 to Tuesday Jan 09, over a weekend.
day_of_week()| A | B | C | D | |
|---|---|---|---|---|
| Jan 02 | 1 | 1 | 1 | 1 |
| Jan 03 | 2 | 2 | 2 | 2 |
| Jan 04 | 3 | 3 | 3 | 3 |
| Jan 05 | 4 | 4 | 4 | 4 |
| Jan 08 | 0 | 0 | 0 | 0 |
| Jan 09 | 1 | 1 | 1 | 1 |
day_of_month¶
day_of_month()
1 to 31.
month_of_year¶
month_of_year()
1 to 12.