I have a dataframe, df, like so:
df
df date periodNumber value 1 2020-02-02 0 814 2 2020-02-09 0 1592 3 2020-02-09