📜  我们如何在 python 代码示例中创建数据框

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

代码示例1
# Import pandas library 
import pandas as pd 
  
# initialize list of lists 
data = [['Group A', 85], ['Group B', 92], ['Group C', 88]] 
  
# Create the pandas DataFrame 
df = pd.DataFrame(data, columns = ['Name', 'Score']) 
  
# print dataframe. 
df