📜  在 pandas 中创建一个 df - Python 代码示例

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

代码示例4
# 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