sh1gechan commited on
Commit
e7e23cf
·
verified ·
1 Parent(s): da97add

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py CHANGED
@@ -304,6 +304,15 @@ with demo:
304
  print("Duplicate columns have been removed.")
305
  else:
306
  print("No duplicate columns found.")
 
 
 
 
 
 
 
 
 
307
 
308
  # データ型を定義
309
  datatype_dict = {}
 
304
  print("Duplicate columns have been removed.")
305
  else:
306
  print("No duplicate columns found.")
307
+
308
+ # 'T' カラムの欠損値を確認
309
+ missing_T = leaderboard_df_filtered['T'].isna().sum()
310
+ print(f"Number of rows with missing 'T': {missing_T}")
311
+
312
+ # 'T' カラムが欠損している場合、埋める(ここでは空文字)
313
+ if missing_T > 0:
314
+ print("Filling missing 'T' values with empty strings.")
315
+ leaderboard_df_filtered['T'] = leaderboard_df_filtered['T'].fillna('')
316
 
317
  # データ型を定義
318
  datatype_dict = {}