fs-lawrisk/tests/test_mapping.py

16 lines
595 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import os
import pandas as pd
def debug_metadata():
file_path = r"c:\Users\WIN10\Desktop\work\11th-week\法律风险提示-new\市监局-lawRisk-backend\市级初版-20251219\许可风险提示\101生产科 风险提示表(食品小作坊登记,市场监管部门) (1)_转自XLS.xlsx"
xl = pd.ExcelFile(file_path)
with open("metadata_debug.txt", "w", encoding="utf-8") as f:
df = xl.parse('市级(无意见)', header=None)
for i in range(10):
f.write(f"Row {i+1}: {list(df.iloc[i])}\n")
if __name__ == "__main__":
debug_metadata()