Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2020-10-21 19:05:39 +02:00
parent 53a66ce335
commit dc036c3cde
3 changed files with 100 additions and 1 deletions

View File

@@ -1037,7 +1037,7 @@ def fetchcp_new(rower,workouts):
if len(data)>1:
df = pd.concat(data,axis=0)
df = df.groupby(['delta']).max()
df = df = df[df['cp'] == df.groupby(['delta'])['cp'].transform('max')]
df = df.sort_values(['delta']).reset_index()