Series object has no attribute value解决方案

import pandas as pd
stock_seri = pd.Series([3.5, 7.2, 12.6, 4.7, 8.2], 
                       index=["300773", "600751", "300405", "002937", "601615"], 
                       name="Stock")
print(stock_seri)
print(type(stock_seri))
print(stock_seri.index)
print(stock_seri.value)#此处修改此处修改此处修改此处修改此处修改此处修改
print(stock_seri.name)
print(stock_seri["300773"])
# 传入列表进行索引,返回格式仍是pandas.core.series.Series
print(stock_seri[["002937", "300773", "601615"]])

print(stock_seri.value)改成print(stock_seri.values)

你可能感兴趣的:(python,数据分析,python,索引)