Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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)
Source by datatofish.com #
 
PREVIOUS NEXT
Tagged: #convert #list #dataframe #python
ADD COMMENT
Topic
Name
6+5 =