file = askopenfilename(filetypes=[("Excel files", "*.xlsx")]) columns = [0, 1] df = pd.read_excel(rf\'{file}\', usecols=columns) try: sender_