组卷题库 > 高中信息技术试卷库
试题详情
有如下 Python 程序段:

import pandas as pd

s1=pd.Series(["赵天一","周光起","王子涵","徐静怡"],index=["01","02","03","04"])

s1["02"]="周广其"

xh=s1.index

name=s1.values

height=[168,175,170,180]

weight=[57,65,62,65]

col=["姓名","身高","体重"]

data={"姓名":name,"身高":height,"体重":weight}

df1=pd.DataFrame(data,index=xh,columns=col)

print(df1[df1["身高"]>170])

运行该程序段,输出显示的内容为(   )

A、
B、   
C、
D、
知识点
参考答案
采纳过本试题的试卷
教育网站链接