Pandas Dataframe rolling with two columns and two rows
问题 I got a dataframe with two columns that are holding Longitude and Latitude coordinates: import pandas as pd values = {'Latitude': {0: 47.021503365600005, 1: 47.021503365600005, 2: 47.021503365600005, 3: 47.021503365600005, 4: 47.021503365600005, 5: 47.021503365600005}, 'Longitude': {0: 15.481974060399999, 1: 15.481974060399999, 2: 15.481974060399999, 3: 15.481974060399999, 4: 15.481974060399999, 5: 15.481974060399999}} df = pd.DataFrame(values) df.head() Now I want to apply a rolling window