Help With Wrangling Dates in Python

Hi There.
Please see the attatchment “Py Question” to view my dataset.
Py Question

Question 1
In Column C (Rating on the first day of the week
I want to write a code that only copies, Ratings for the first day of Week and the repeat the same process.

Question 2
In Column D (Rating on the Last day of the week
I want to write a code that only copies, Ratings for the lastday of Week and the repeat the same process.

How would I do it on my Jupyter notebook?

1 Like

Assuming it’s just date wrangling you’re doing, you can try external, “human-friendly” options as well:

To wrangle tabular data, I’d consider trying the external pandas library or the internal csv module.