import pandas
data = pandas.read_csv(
? ? 'D:\\PDA\\5.1\\data.csv'
)
#導(dǎo)入數(shù)據(jù)#

data.score.describe()
#描述數(shù)據(jù)的基本情況
出現(xiàn)的結(jié)果是
count? ? 13.000000
mean? ? 121.076923
std? ? ? 12.446295
min? ? ? 96.000000
25%? ? ? 115.000000
50%? ? ? 120.000000
75%? ? ? 131.000000
max? ? ? 140.000000
Name: score, dtype: float64#
data.score.var()#方差#
data.score.std()#標(biāo)準(zhǔn)差#
data.score.cumsum()#累計(jì)求和#
結(jié)果
0? ? ? 120
1? ? ? 242
2? ? ? 382
3? ? ? 513
4? ? ? 635
5? ? ? 754
6? ? ? 850
7? ? ? 985
8? ? 1090
9? ? 1204
10? ? 1319
11? ? 1455
12? ? 1574
Name: score, dtype: int64
data.score.argmin()
data.score.argmax() #最大值和最小值所在位置#