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
1L = ['Thanks You', 'Its fine no problem', 'Are you sure']
2
3#create new df
4df = pd.DataFrame({'col':L})
5print (df)
6
7 col
80 Thanks You
91 Its fine no problem
102 Are you sure