I have a pandas DataFrame containing XY coordinates of a path that moves either 1 unit up/down, 1 unit left/right, or 1 unit up/down AND 1 unit left/right.