1from pandas import DataFrame
2
3People_List = ['Jon','Mark','Maria','Jill','Jack']
4
5df = DataFrame (People_List,columns=['First_Name'])
6print (df)
7
1# import pandas as pd
2import pandas as pd
3
4# list of strings
5lst = ['Geeks', 'For', 'Geeks', 'is',
6 'portal', 'for', 'Geeks']
7
8# Calling DataFrame constructor on list
9df = pd.DataFrame(lst)
10df
1import pandas as pd
2from pandas import DataFrame
3df = DataFrame(lst,columns=['num'])