首页上一页 1 下一页尾页 1 条记录 1/1页
import pandas as pd
data =[[110,105,99],[105,88,115],[109,120,130]]
index = [0,1,2]
columns = ['语文','数学','英语']
#创建DataFram数据
df = pd.DataFrame(data,index=index,columns=columns)
#print(df)
#遍历DataFram数据的每一列
for col in df.columns:
serise_col = df[col]
#print(serise_col)
#遍历ataFram数据的每一行
for i in df.index:
serise_index = df.index
print(serise_index)