import pandas as pd ## the time column doesn't matter in your problem df = pd.DataFrame({ 'time':['2021-3-19','2021-3-20','2021-3-21','2021-3-22', '2021-3-23','2021-3-24','2021-3-25','2021-3-26','2021-3-27'], 'value':[10,11,9,5,4,2,4,9,5], 'st...