首页 > 解决方案 > 属性错误:“系列”对象没有属性“数组”

问题描述

我有以下系列history_data_price

483    6528.3
484    6528.3
485    6528.3
486    6528.3
487    6528.3
488    6528.3
489    6528.3
490    6528.3
491    6528.3
492    6528.3
493    6528.3
494    6528.3
495    6528.3
496    6528.3
497    6528.3
498    6528.3
Name: price, dtype: float64

我使用以下代码行创建的:

history_data_price = pd.Series(data_linear['price'].iloc[500-H-1:500-1].astype('float'))

我想将它转换成一个数组(不是一个 numpy 数组),我执行以下操作: history_data_price.array但是我有标题错误消息,知道为什么吗?谢谢!

标签: pythonarrays

解决方案


推荐阅读