Dec-30-2018, 08:43 PM
What error are you getting?
As for an explanation, the function accepts a list of sub-lists and transforms it. The transformation process (in the loop) takes the data in each sub-list for a specified index and aggregates them into a single list. Like so:
[[1,2,3],[1,2,3]] => [[1,1],[2,2],[3,3]]
This saves a lot of effort to change your data set into rows for the table.
As for an explanation, the function accepts a list of sub-lists and transforms it. The transformation process (in the loop) takes the data in each sub-list for a specified index and aggregates them into a single list. Like so:
[[1,2,3],[1,2,3]] => [[1,1],[2,2],[3,3]]
This saves a lot of effort to change your data set into rows for the table.