📜  pandas list to df - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:12.232000             🧑  作者: Mango

代码示例4
# import pandas as pd 

import pandas as pd 
# list of strings 
lst = ['fav', 'tutor', 'coding', 'skills']
# Calling DataFrame constructor on list 
df = pd.DataFrame(lst) 
print(df)