C2W3 Exercise 8

Hi, I’m having trouble running this code.

I think it’s ok but I don’t know what the error is.

START CODE HERE
Use StatisticsGen to compute the statistics using the curated schema

statistics_gen_updated = tfx.components.StatisticsGen(examples = user_schema_importer.outputs[‘schema’])

Run the component
context.run(statistics_gen_updated)
END CODE HERE

Could anyone help me please?

Thank you!

It’s incorrect to pass schema as the parameter that expects examples. Please see this link.