Answers for "how to convert list to pd dataframe"

3

how to convert a list into a dataframe in python

from pandas import DataFrame

People_List = ['Jon','Mark','Maria','Jill','Jack']

df = DataFrame (People_List,columns=['First_Name'])
print (df)
Posted by: Guest on October-07-2020
1

list of dataframe to dataframe

import pandas as pd
df = pd.concat(list_of_dataframes)
# easy way
Posted by: Guest on October-01-2021

Code answers related to "how to convert list to pd dataframe"

Python Answers by Framework

Browse Popular Code Answers by Language