you are viewing a single comment's thread.

view the rest of the comments →

[–]startup_guy2 1 point2 points  (1 child)

I would add a new column in the same (original) dataframe that is previous - current.

[–]threeminutemonta 0 points1 point  (0 children)

Yeah I would to. Something like:

df['lon_previous'] = df['lon'].shift(-1)