Lag function returning 0s

Solution 1:

It looks like your code is working. Try:

tail(df2) 

and see if you have values in that line.