am new to python so the question might sound easy to experts but am trying to create a data frame in python, which will not cut the lag variable from the bottom and we will have new data frame with rows( org. data frame row + lag # ).
am trying this using "pd.concat" and shift(lag#) but no luck so far.
Ex. assume DF have 2 variable ( date and var1) then new data frame should have 3 variable (date, var1,lag_1_var1) in which "date" and "var1" column will have "NA" value at the bottom as we will be adding 1 more row (last row lag 1 of var1), so the dimension of original DF is say n*2 and new is (n +1 (as lag1))*3
Thanks in advance