James McCool
commited on
Commit
·
f49d54b
1
Parent(s):
3213b6b
Add 'finish' column to working DataFrame in app.py
Browse files- Introduced a new 'finish' column that mirrors the 'index' values, enhancing data tracking for percentile calculations.
- This addition improves the clarity and usability of the DataFrame during processing.
app.py
CHANGED
@@ -151,6 +151,7 @@ with tab2:
|
|
151 |
working_df['dupes'] = working_df.groupby('sorted').transform('size')
|
152 |
working_df = working_df.reset_index()
|
153 |
working_df['percentile_finish'] = working_df['index'].rank(pct=True)
|
|
|
154 |
working_df = working_df.drop(['sorted', 'index'], axis=1)
|
155 |
elif type_var == 'Showdown':
|
156 |
working_df['stack'] = working_df.apply(
|
|
|
151 |
working_df['dupes'] = working_df.groupby('sorted').transform('size')
|
152 |
working_df = working_df.reset_index()
|
153 |
working_df['percentile_finish'] = working_df['index'].rank(pct=True)
|
154 |
+
working_df['finish'] = working_df['index']
|
155 |
working_df = working_df.drop(['sorted', 'index'], axis=1)
|
156 |
elif type_var == 'Showdown':
|
157 |
working_df['stack'] = working_df.apply(
|