python - 属性错误:“系列”对象没有属性“数组”
问题描述
我有以下系列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
但是我有标题错误消息,知道为什么吗?谢谢!
解决方案
推荐阅读
- c - 为什么不考虑计算机的输入?
- r - 尽可能快地检查一组向量是否包含彼此的任何子集
- java - Redis:关闭其中一个 Redis 主节点时,Spring Boot 应用程序请求不断失败
- mysql - MySQL-8.0.12 从属复制失败
- java - 如何在 pdfbox 2.0.x 中克隆生成的 PDDocument?
- c++ - 我想知道 long double 和 double 之间的区别
- javascript - 带有选项 cssModules:true 的下一个 css 排除 node_module css 文件
- cordova - Maximo Anywhere 克隆应用程序后条码扫描不起作用
- c++ - 为什么这个音频包络不会通过开关的情况进行?
- c++ - 如何制作多维类?