cereal in cereals if cereal["type"] == "H"] ) yield Output(hot_cereals, "hot_cereals") if context.solid_config["process_cold"]: hot_cereals = DataFrame( [cereal for cereal in cereals if cereal["type"] == "C"] ) yield Output(hot_cereals, "cold_cereals")