This is my DataFrame:
col1 col2
A 5
B 3
C 8
D 2
E 9
F 9
G 4
H 9
I 3
J 5
K 7
L 3
M 7
I want to shift column col2 by 5 units forward. Expected output:
col1 col2
A na
B na
C na
D na
E na
F 5
G 3
H 8
I 2
J 9
K 9
L 4
M 9
na 3
na 5
na 7
na 3
na 7
I know about the existence of the shift method, but it shifts the whole DataFrame