LucasLima commited on
Commit
d41e298
·
verified ·
1 Parent(s): 09b46ac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -21
app.py CHANGED
@@ -175,27 +175,6 @@ def create_leaderboard_component(dataframe, displayed_cols, hidden_cols=None, ca
175
  # Filtrar Nones da lista de filtros
176
  final_filter_columns = [f for f in raw_filter_columns if f is not None]
177
 
178
- # --- DEBUG PRINTS ---
179
- if title == "Área Médica": # Only print for the problematic tab for clarity
180
- print(f"--- Debugging Tab: {title} ---")
181
- # Check columns before filtering for the tab
182
- print(f"dataframe cols IN: {dataframe.columns.tolist()}")
183
- print(f"displayed_cols: {displayed_cols}")
184
- print(f"hidden_cols: {hidden_cols}")
185
- print(f"cant_deselect_cols: {cant_deselect_cols}")
186
- # Check columns used to create filtered_df
187
- print(f"all_required_cols for filter: {sorted(list(all_required_cols))}")
188
- print(f"available_cols from dataframe: {sorted(available_cols)}")
189
- # Check columns AFTER filtering for the tab
190
- print(f"filtered_df cols OUT: {filtered_df.columns.tolist()}")
191
- # Check columns passed to Leaderboard config
192
- print(f"Leaderboard - default_selection: {displayed_cols}")
193
- print(f"Leaderboard - hide_columns: {[c for c in hidden_cols if c in filtered_df.columns]}")
194
- print(f"Leaderboard - cant_deselect: {cant_deselect_cols}")
195
- combined_checked_cols = set(displayed_cols) | set([c for c in hidden_cols if c in filtered_df.columns]) | set(cant_deselect_cols)
196
- print(f"Leaderboard - combined checked cols: {sorted(list(combined_checked_cols))}")
197
- print(f"--- End Debugging Tab: {title} ---")
198
- # --- END DEBUG PRINTS ---
199
 
200
  # --- Reordenar Colunas ---
201
  current_cols = filtered_df.columns.tolist()
 
175
  # Filtrar Nones da lista de filtros
176
  final_filter_columns = [f for f in raw_filter_columns if f is not None]
177
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
178
 
179
  # --- Reordenar Colunas ---
180
  current_cols = filtered_df.columns.tolist()