v2 폐기하고 v3로 새출발
This commit is contained in:
19
legacy/분석도구/v2/utils/list_datatables.py
Normal file
19
legacy/분석도구/v2/utils/list_datatables.py
Normal file
@ -0,0 +1,19 @@
|
||||
"""모든 DataTable 나열"""
|
||||
import json
|
||||
|
||||
with open('../../원본데이터/DataTable.json', 'r', encoding='utf-8') as f:
|
||||
data = json.load(f)
|
||||
|
||||
assets = data.get('Assets', [])
|
||||
print(f"총 Assets: {len(assets)}\n")
|
||||
|
||||
# DataTable만 필터링
|
||||
datatables = [a for a in assets if a.get('Type') == 'DataTable']
|
||||
print(f"DataTable 개수: {len(datatables)}\n")
|
||||
|
||||
# 이름 출력
|
||||
print("DataTable 목록:")
|
||||
for dt in datatables:
|
||||
name = dt.get('Name', '')
|
||||
rows_count = len(dt.get('Rows', {}))
|
||||
print(f" - {name} ({rows_count} rows)")
|
||||
Reference in New Issue
Block a user