QIDNLF commited on
Commit
e4c9153
·
verified ·
1 Parent(s): a646ae6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -9
app.py CHANGED
@@ -257,11 +257,6 @@ def display_data(standard, version, selection):
257
  # 이미 규격에 맞는 경우 소문자로 이름만 맞춤
258
  df.columns = lower_cols
259
  df = df[['section', 'description']]
260
-
261
- # 🌟 [추가] 부속 테이블(TableA 등)이면 section 겹침 방지를 위해 접두사 추가
262
- if full_table_name != main_t:
263
- df['section'] = short + "_" + df['section'].astype(str)
264
-
265
  else:
266
  # TableB_C 처럼 고유 컬럼 구조를 가진 경우의 동적 병합 처리
267
  if len(orig_cols) >= 2:
@@ -277,10 +272,6 @@ def display_data(standard, version, selection):
277
 
278
  df['description'] = df.apply(build_combined_desc, axis=1)
279
  df = df.rename(columns={first_col: 'section'})
280
-
281
- # 🌟 [추가] section 겹침 방지를 위해 접두사 추가 (예: 5.1 -> TableB_C_5.1)
282
- df['section'] = short + "_" + df['section'].astype(str)
283
-
284
  df = df[['section', 'description']]
285
 
286
  conn.close()
 
257
  # 이미 규격에 맞는 경우 소문자로 이름만 맞춤
258
  df.columns = lower_cols
259
  df = df[['section', 'description']]
 
 
 
 
 
260
  else:
261
  # TableB_C 처럼 고유 컬럼 구조를 가진 경우의 동적 병합 처리
262
  if len(orig_cols) >= 2:
 
272
 
273
  df['description'] = df.apply(build_combined_desc, axis=1)
274
  df = df.rename(columns={first_col: 'section'})
 
 
 
 
275
  df = df[['section', 'description']]
276
 
277
  conn.close()