better filtering
This commit is contained in:
@@ -136,7 +136,7 @@ def get_video_data(w,groups=['basic'],mode='water'):
|
||||
|
||||
|
||||
df.set_index(pd.to_timedelta(df['time'],unit='s'),inplace=True)
|
||||
df2 = df.resample('1s').mean().interpolate()
|
||||
df2 = df.resample('1s').first().fillna(method='ffill')
|
||||
if 'pace' in columns:
|
||||
df2['pace'] = df2['pace']/1000.
|
||||
p = df2['pace']
|
||||
|
||||
@@ -2956,15 +2956,12 @@ def interactive_chart_video(videodata):
|
||||
|
||||
data = zip(time,spm)
|
||||
|
||||
data2 = []
|
||||
data2 = "["
|
||||
|
||||
for t,s in data:
|
||||
data2.append(
|
||||
{
|
||||
'x':t,
|
||||
'y':s,
|
||||
}
|
||||
)
|
||||
data2 += "{x: %s, y: %s}, " % (t,s)
|
||||
|
||||
data2 = data2[:-2] + "]"
|
||||
|
||||
markerpoint = {
|
||||
'x': time[0],
|
||||
|
||||
Reference in New Issue
Block a user