I have a Python dictionary:
{u'2012-07-01': 391,
u'2012-07-02': 392,
u'2012-07-03': 392,
u'2012-07-04': 392,
u'2012-07-05': 392,
u'2012-07-06': 392}
I would like to convert this into a pandas dataframe by having the dates and their corresponding values as two separate columns; the expected result looks like:
Date DateValue
0 2012-07-01 391
1 2012-07-02 392
2 2012-07-03 392
. 2012-07-04 392
. ... ...
Is there a direct way to do this?