A table of dates with primary keys is sometimes used in databse design.
| date_id | Date | Record_timestamp | Day | Week | Month | Quarter | Year_half | Year |
|---------+----------------+---------------------+-----------+-------+--------+-------------+-------------+----------|
| 0 | 2000-01-01 | NaN | Saturday | 52 | 1 | 1 | 1 | 2000 |
| 1 | 2000-01-02 | NaN | Sunday | 52 | 1 | 1 | 1 | 2000 |
| 2 | 2000-01-03 | NaN | Monday | 1 | 1 | 1 | 1 | 2000 |
How to do it in pandas?