I have a dataframe as below:
+----+----------------+-------------+----------------+-----------+
| | attribute_one| value_one | attribute_two | value_two |
|----+----------------+-------------+----------------+-----------|
| 0 | male | 10 | female | 15 |
| 1 | 34-45 | 17 | 55-64 | 8 |
| 2 | graduate | 32 | high school | 5 |
...
I want to convert it into dictionary that gives this output:
{'male': '10',
'34-45':'17',
'graduate':'32'
'female':'15',
'55-64': '8',
'high school': '5'
}
How do I do that? I only want attribute columns as keys and their value columns as values.