I have a Pandas Data Frame which contain Three Column. I want to create a multiple list of tuple based on the value in Project Column
print (df)
Project Resource Time
0 P1 0 4
1 P1 2 4
2 P1 1 10
3 P1 3 3
4 P2 1 3
5 P2 3 10
6 P2 0 11
7 P2 2 3
8 P2 0 12
9 P2 3 11
10 P2 1 3
11 P2 2 3
12 P3 0 12
List Tuple i want to create look like this [[(0,4),(2,4),(1,10),(3,3)],[(1,3),(3,10),(0,11),(2,3),(0,12),(3,11),(1,3),(2,3)],[(0,12)]]
I used the following code
tuples = [tuple(x) for x in data.values]