I have a dataframe
+---+------------+-----------+
| | wavelength | intensity |
+---+------------+-----------+
| 1 | 400 | 12 |
| 2 | 401 | 20 |
| 3 | 402 | 25 |
+---+------------+-----------+
and want to convert it to a dictionary
{400:12,
401:20,
402:25}
None of the orient parameters for the pandas.DataFrame.to_dict function gives me this output. How do I best get the desired output?