Having a dataframe of the form :
element1 | element2 | element3
cat bird plane
dog poodle cloud
pig bike sky
I want to convert it to a dictionary of lists of the form
{ 'element1' : ['cat', 'dog', 'pig'],
'element2' : ['bird', 'poodle', 'bike'],
'element3' : ['plane', 'cloud', 'sky'] }
I am looking at the documentation of the .to_dict method, but none of the options seem to do what I need.