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\':
This is what worked for me, since I wanted to have a separate index column
df = pd.DataFrame.from_dict(some_dict, orient="index").reset_index() df.columns = ['A', 'B']