Shifting and differencing rows#
Learning objectives#
After working through this topic, you should be able to:
shift and difference rows in a DataFrame
assign the result of a shift operation to a new column in a DataFrame
combine groupby and shift/difference operations
Materials#
Video with English subtitles:
Download the slides.
Video with German subtitles:
(turn subtitles on in the bottom right corner of the video)