From cc070fc50eb300c9f8912bb57c1e15684ac78a8c Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Sat, 5 Oct 2024 18:11:29 +0200 Subject: [PATCH] fix --- rowers/dataroutines.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rowers/dataroutines.py b/rowers/dataroutines.py index c6bdef6c..26939338 100644 --- a/rowers/dataroutines.py +++ b/rowers/dataroutines.py @@ -249,8 +249,7 @@ def get_video_data(w, groups=['basic'], mode='water'): df2 = pd.concat([df2, coordinates], axis=1) latitude = df2['latitude'] longitude = df2['longitude'] - boatspeed = (100*df2['velo']).astype(int)/100. - + boatspeed = (100*df2['velo'].fillna(method='ffill')).astype(int)/100. # bundle data data = { 'boatspeed': boatspeed.values.tolist(),