Let's assume there is a DataFrame, stored as df, which contains store records for May of 2022:
items_sold items_processing
date
2022-05-01 14 5
2022-05-02 18 3
2022-05-03 10 3
2022-05-04 18 6
2022-05-05 14 2
There is a date column in the YYYY-MM-DD pandas datetime format, but the index hasn't been set. Suppose there was a promotion from May 7th, 2022, up to May 12, 2022 (May 12th is included). Set the index to date and select all records that were made in the promotion period.
Print out the results of the selection.