
import pandas as pd

file_path = r'/root/.openclaw/workspace-xiaoyan/business_knowledge/L2单词表/情境分类.xlsx'
df = pd.read_excel(file_path)

print(f"行数: {len(df)}, 列数: {len(df.columns)}")
print(f"列名: {list(df.columns)}")
print()

# 查看D列（第4列，索引3）
col_d = df.columns[3]
print(f"D列名称: {col_d}")
print()

# 查看D列所有唯一值
unique_values = df[col_d].dropna().unique()
print(f"D列唯一值数量: {len(unique_values)}")
print()
print("=== D列所有唯一分类 ===")
for i, v in enumerate(sorted(unique_values, key=str), 1):
    print(f"  {i}. {v}")
