My code below has an error that says that the module holidays has no attribute AT. Is there any way in which I can turn a string into an attribute like this?
import holidays
countrycodes = ["AT","GB","US"]
countrydata = {'Date': [],'Holiday Name': []} 
for i in range(len(countrycodes)):
    for date, name in sorted(holidays.countrycodes[i](years=2022).items()):
        countrydata['Date'].append(date)
        countrydata['Holiday Name'].append(name)
        df = pd.DataFrame(data=countrydata)
 
    