pandas from series to dataframe code example
Example 1: pandas.core.series.series to dataframe
>>> s = pd.Series(["a", "b", "c"],
... name="vals")
>>> s.to_frame()
vals
0 a
1 b
2 c
Example 2: series to dataframe
pd.DataFrame({'email':sf.index, 'list':sf.values})