List of Series to Dataframe

Since the right answer has got hidden in the comments, I thought it would be better to mention it as an answer:

pd.concat(li, axis=1).T

will convert the list li of Series to DataFrame


Based on the post you can do this by doing:

pd.DataFrame(li)

To everyone suggesting pd.concat, this is not a Series anymore. They are adding values to a list and the data type for li is a list. So to convert the list to dataframe then they should use pd.Dataframe(<list name>).