James McCool
commited on
Commit
·
7e42d3a
1
Parent(s):
c6e3488
fixing dupes formula
Browse files
app.py
CHANGED
@@ -429,7 +429,7 @@ if selected_tab == 'Data Load':
|
|
429 |
working_df['sorted'] = working_df[st.session_state['player_columns']].apply(
|
430 |
lambda row: ','.join(sorted(row.values)), axis=1
|
431 |
)
|
432 |
-
working_df['dupes'] = working_df.groupby('actual_fpts').transform('size')
|
433 |
|
434 |
# Vectorized unique calculations
|
435 |
working_df['uniques'] = working_df.groupby('BaseName')['dupes'].transform(
|
@@ -527,7 +527,7 @@ if selected_tab == 'Data Load':
|
|
527 |
working_df['sorted'] = working_df[st.session_state['player_columns']].apply(
|
528 |
lambda row: ','.join(sorted(row.values)), axis=1
|
529 |
)
|
530 |
-
working_df['dupes'] = working_df.groupby('actual_fpts').transform('size')
|
531 |
|
532 |
# Vectorized unique calculations
|
533 |
working_df['uniques'] = working_df.groupby('BaseName')['dupes'].transform(
|
|
|
429 |
working_df['sorted'] = working_df[st.session_state['player_columns']].apply(
|
430 |
lambda row: ','.join(sorted(row.values)), axis=1
|
431 |
)
|
432 |
+
working_df['dupes'] = working_df.groupby(['actual_fpts', 'actual_own', 'salary']).transform('size')
|
433 |
|
434 |
# Vectorized unique calculations
|
435 |
working_df['uniques'] = working_df.groupby('BaseName')['dupes'].transform(
|
|
|
527 |
working_df['sorted'] = working_df[st.session_state['player_columns']].apply(
|
528 |
lambda row: ','.join(sorted(row.values)), axis=1
|
529 |
)
|
530 |
+
working_df['dupes'] = working_df.groupby(['actual_fpts', 'actual_own', 'salary']).transform('size')
|
531 |
|
532 |
# Vectorized unique calculations
|
533 |
working_df['uniques'] = working_df.groupby('BaseName')['dupes'].transform(
|