I am beginner in python. I am just wondering, I have this data in a pandas dataframe
| type | value |
|---|---|
| A | 1 |
| A | 4 |
| A | 3 |
| B | 6 |
| B | 2 |
| B | 2 |
where each type will have three value (it can be different value or same value)
and what I want is to create a list of list (or anything, I don't know the exact name since I'm stuck to search the similar question using this vocabulary) but group by type column
expected output is exactly list of list like this:
[[1,4,3],[6,2,2]]