Code Interpreter Not Working

Hey guys im working on a project where I need to basically pass inputs from my excel row by row to my crew. If it finds the company in a specific country from the search results (1st agent) then it should type “1” in the excel file under that same country and if it didn’t find the country in the excel file then it should make a new column with that country name and put “1” under it. I’ve tried running the code but I keep getting error when it wants to write and when it somehow did write some output, it was wrong. I’ve been trying 2 fix it for a week and I need 2 submit it by Friday for potential internship.

github: Data-Analysis/crew at master · yazanrisheh/Data-Analysis