I want to create a one-hot encoder. When I try with just one country, it works, but when I do the loop, it returns an error. Here\'s the code that works:
def