I have a Series, like this:
series = pd.Series({\'a\': 1, \'b\': 2, \'c\': 3})
I want to convert it to a dataframe like this:
Try reset_index. It will convert your index into a column in your dataframe.
df = series.to_frame().reset_index()