I have a python data frame object which looks like this:
| Heading 1 | Heading 2 |
|---|---|
| A | 1 |
| A | 2 |
| A | 3 |
| B | 4 |
| B | 5 |
I need to convert this into a dictionary with lists as values, and Col1 values as keys. This would look like this:
{'A':[1,2,3], 'B':[4,5])
I tried to accomplish that with a .to_dict() method, but this doesn't seem to work properly.