import pandas as pd m_list=[( 'join' ,25,' male'), (' 1isa', 30, ' female'), (' david',' 18',' male' )] df=pd.DataFrame(m_list, columns=[' Name' ,' age' ,' gender' ]) print (df)
Name age gender
0 join 25 male
1 1isa 30 female
2 david 18 male
df=pd. read. csv(' ./中国大学综合排名2021. csv',encoding-' utt-8' ) print(df)
标签:25,python,学习,df,1isa,pd,male,pandas From: https://www.cnblogs.com/xkdn/p/17694229.html