I had the following stock daily price data from 2010/12 to 2017/12. How could i select last week's data of each year? I intend to check the performance for the last week of each year.
2017-01-05 52.99 13018070.0 52.370 53.0600 51.4000
2017-01-04 52.86 12556860.0 50.770 53.3400 50.7300
2017-01-03 50.29 15794400.0 48.800 50.3000 48.4700
2016-12-30 46.75 13593420.0 48.365 48.4000 46.3600
2016-12-29 47.77 11728250.0 48.440 48.8600 47.1800
2016-12-28 48.51 14636340.0 50.580 50.7300 48.4700
2016-12-27 50.43 5594876.0 49.690 50.5500 49.6500
2016-12-23 49.59 6966559.0 49.250 49.7200 48.9900
2016-12-22 49.44 10918300.0 50.320 50.5500 49.1711
2016-12-21 50.34 9279635.0 49.820 50.4400 49.6700
2016-12-20 49.53 9533020.0 48.990 49.7900 48.9100
2016-12-19 48.55 10323930.0 47.450 48.6700 47.4300
...
2010-12-20 ...