I have a Pandas dataframe that has two columns and looks like:
title date
Event0 2016-01-03
Event1 2016-02-28
Event2 2016-06-19
Event3 2016-04-17
Event4 2015-11-12
etc...
I would like to reorder the events by date in descending order by date and then create a python dictionary of the results. Thus, I'd like my python dictionary's key(string),value(datetime) pair to look like:
result_dictionary = {
'Event2': 2016-06-19,
'Event3': 2016-04-17,
'Event1': 2016-02-28,
'Event0': 2016-01-03,
'Event4': 2015-11-12
}
What is the most efficient way to do this?
Thank-you