I think I’m missing something.
This is how I coded it
START CODE HERE
replacement_domain = tfdv.get_domain(schema, to_domain_name)
# HINT: Loop over the feature list and use set_domain with the inferred schema, feature name and target domain name
for feature in features_list:
tfdv.set_domain(schema, feature, replacement_domain)
END CODE HERE
Whe I run the test cell, I get this:
Domain name of 'chlorpropamide': Domain values of 'chlorpropamide': ['Down', 'No', 'Steady', 'Up']
Domain name of 'repaglinide': Domain values of 'repaglinide': ['Down', 'No', 'Steady', 'Up']
Domain name of 'nateglinide': Domain values of 'nateglinide': ['Down', 'No', 'Steady', 'Up']
Which is almost there except missing metformin as the domain name as the expected answer show:
Expected Output:
Domain name of 'chlorpropamide': metformin
Domain values of 'chlorpropamide': ['Down', 'No', 'Steady', 'Up']
Domain name of 'repaglinide': metformin
Domain values of 'repaglinide': ['Down', 'No', 'Steady', 'Up']
Domain name of 'nateglinide': metformin
Domain values of 'nateglinide': ['Down', 'No', 'Steady', 'Up']
Wondering what am I missing??