import pandas as pd # Đọc file Excel excel_file = "Link LLV 2025.xlsx" sheet_name = "Bản sao của LLV Form mới" # Đọc sheet df = pd.read_excel(excel_file, sheet_name=sheet_name) # Lọc các record có cột "Bên AI review File" là "Hoàn thành" filtered_df = df[df["Bên AI review File"] == "Hoàn thành"] # In ra các mã địa điểm print("Các mã địa điểm có trạng thái 'Hoàn thành':") print("-" * 50) if not filtered_df.empty: # Lấy giá trị từ cột "Mã địa điểm" for idx, row in filtered_df.iterrows(): ma_dia_diem = row["Mã địa điểm"] print(f"Mã địa điểm: {ma_dia_diem}") print("-" * 50) print(f"Tổng số record: {len(filtered_df)}") else: print("Không tìm thấy record nào có trạng thái 'Hoàn thành'") # In ra tên các cột để kiểm tra print("\nDanh sách các cột trong sheet:") print(df.columns.tolist())