I've got a very simple problem. I have a dataframe:
A
0 1.0
1 2.0
2 3.0
and when I do df.shift(1) the data looks like:
A
0 NaN
1 1.0
2 2.0
and I would like it to look like:
A
0 NaN
1 1.0
2 2.0
3 3.0
simply speaking - how do I shift the data without losing the last row?