I have a df:
A B C D 0 a f k p 1 b g l r 2 c h m s 3 d i n t 4 e j o u And I want to update column B with a column
B a b c But at position n, meaning I will keep n-1 rows and update the rest.
So the output would be for updating at index 2:
A B C D 0 a f k p 1 b a l r 2 c b m s 3 d c n t 4 e j o u How would one do this?