I have a Python dictionary like the following:
{u\'2012-06-08\': 388, u\'2012-06-09\': 388, u\'2012-06-10\': 388, u\'2012-06-11\': 389, u\'2012-06-12\':
You can also just pass the keys and values of the dictionary to the new dataframe, like so:
import pandas as pd myDict = {] df = pd.DataFrame() df['Date'] = myDict.keys() df['DateValue'] = myDict.values()