This commit is contained in:
edeymc 2025-11-08 17:10:04 -08:00
parent 6533956fdf
commit 2cdf9246ed

View file

@ -38,6 +38,6 @@ def find_AWR(performances,AWR=Current_AWR,identifier='SNC_ID'):
on='Gender EventClass Stroke Distance'.split(),
how='inner'
)
.groupby(identifier+'Gender EventClass Stroke Distance'.split(),group_keys=False)
.groupby([identifier]+'Gender EventClass Stroke Distance'.split(),group_keys=False)
.apply(lambda df: df.assign(AWR=1+len(df[df.AWR < df.Seconds])).head(1))
)