Created
August 23, 2021 19:04
-
-
Save lmeulen/e6b4b70c6b2dabb74dd375288471c952 to your computer and use it in GitHub Desktop.
gpx_speed_ma
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rows = int(30/int(df.dt.mean())) | |
df['speed_ma'] = df['speed'].rolling(window=rows, min_periods=1).mean() | |
df[['speed_ma']].plot(figsize=(15,8)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment