Unable to loop correctly
Unable to loop correctly Question: I am working on assignment to extract emails from the mailbox. Below are my codes, I am referencing from this case and combine with some other research online: import win32com.client import pandas as pd import os outlook = win32com.client.Dispatch("Outlook.Aplication").GetNamespace("MAPI") inbox = outlook.GetDefaultFolder(6).Folders["Testmails"] condition = pd.read_excel(r"C:UsersAsusDesktopPythonCondition.xlsx", sheet_name = ‘endword’) emails = …