Below is script for a simplified version of the df in question:
import pandas as pd df = pd.DataFrame({ \'week\': [1,2,3,4,5,6,7,8,9,