1from pandas import DataFrame
2
3People_List = ['Jon','Mark','Maria','Jill','Jack']
4
5df = DataFrame (People_List,columns=['First_Name'])
6print (df)
7
1import pandas as pd
2from pandas import DataFrame
3df = DataFrame(lst,columns=['num'])
1# Create datafrae from student list but skip column 'Age' i.e. only with 2 columns
2dfObj = pd.DataFrame.from_records(students, exclude=['Age'], columns = ['Name' , 'Age', 'City'], index=['a', 'b', 'c'])
3