I have a dataframe df = pd.DataFrame({"route": [route0, route0, route1, route1], "period": [0,1,0,1], "value": [1,0,2,0]}\\
df = pd.DataFrame({"route": [route0, route0, route1, route1], "period": [0,1,0,1], "value": [1,0,2,0]}