I have a collection of three sets, each containing three elements:
Set1 = [[apple, 2, 4],
[banana, 5, 5],
[cherry, 4, 1]]
Set2 = [[banana, 1, 7],
[cherry, 3, 8],
[date, 5, 4]]
Set3 = [[apple, 5, 2],
[banana, 0, 9],
[date, 3, 1]]
The desired output format is as follows:
[[apple, 2, 4, 0, 0, 5, 2],
[banana, 5, 5, 1, 7, 0, 9],
[cherry, 4, 1, 3, 8, 0, 0],
[date, 0, 0, 5, 4, 3, 1]]
How can I transform the sets to achieve this output?