flushing
This commit is contained in:
parent
d14ed48524
commit
6533956fdf
1 changed files with 2 additions and 2 deletions
|
|
@ -24,7 +24,7 @@ Current_AWR = (
|
|||
pd.read_excel(module_dir / '2025 Fall Performance AWR - 2025-10-07.xlsx')
|
||||
)
|
||||
|
||||
def find_AWR(performances,AWR=Current_AWR):
|
||||
def find_AWR(performances,AWR=Current_AWR,identifier='SNC_ID'):
|
||||
return (
|
||||
performances
|
||||
.astype({'SportClass':str})
|
||||
|
|
@ -38,6 +38,6 @@ def find_AWR(performances,AWR=Current_AWR):
|
|||
on='Gender EventClass Stroke Distance'.split(),
|
||||
how='inner'
|
||||
)
|
||||
.groupby('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))
|
||||
)
|
||||
Loading…
Add table
Reference in a new issue