The table is made in a way such that:
(i) the title of the lists is extracted from the first row of the matrix
(ii) the number of columns of the table are exactly the number of elements in the second row - 1
(iii) the side column is the first element of every row of the matrix
The table is made in a way such that: (i) the title of the lists is extracted from the first row of the matrix (ii) the number of columns of the table are exactly the number of elements in the second row - 1
(iii) the side column is the first element of every row of the matrix
example input: matrix2 = [ ["name", "place", "animal", "thing", 16], ["s", "srivats", "san diego", "swine", "sugar"], ["b", "basu", "boston", "beer", "bolt"]]
example output:
Possible fix: pad the first column of each row (2nd row onwards) of the input data matrix with some value