I am working with google or tools and in one of the examples a data structure is given. I would like to import this data structure based on an Excel sheet.
This is the given data structure:
jobs = [[[(3, 0), (1, 1), (5, 2)],
[(2, 0), (4, 1), (6, 2)],
[(2, 0), (3, 1), (1, 2)]],
[[(2, 0), (3, 1), (4, 2)],
[(1, 0), (5, 1), (4, 2)],
[(2, 0), (1, 1), (4, 2)]],
[[(2, 0), (1, 1), (4, 2)],
[(2, 0), (3, 1), (4, 2)],
[(3, 0), (1, 1), (5, 2)]]]
What I like to do is to import jobs based on an Excel sheet with data given as:
Job Task M1 M2 M3
1 1 3 1 5
1 2 2 4 6
1 3 2 3 1
2 1 2 3 4
2 2 2 5 4
2 3 2 1 4
3 1 2 3 4
3 2 3 1 5
pandas.read_excel?pandas.read_excel(which works fine). But I am not sure how to import it in order to receive the mentioned data type (list with tuples?)