首页 > 其他分享 >AttributeError: 'Series' object has no attribute 'ix'

AttributeError: 'Series' object has no attribute 'ix'

时间:2023-11-02 11:05:47浏览次数:35  
标签:ix log ts no attribute ARIMA predictions index

在pandas版本0.20.0及其以后版本中,ix已经不被推荐使用,建议采用iloc和loc实现ix。

 

predictions_ARIMA_log = pd.Series(ts_log.ix[0],index=ts_log.index)
predictions_ARIMA_log = predictions_ARIMA_log.add(predictions_ARIMA_diff_cumsum,fill_value=0)
predictions_ARIMA_log.head()

Here is the error I am getting: 'Series' object has no attribute 'ix'

 

predictions_ARIMA_log = pd.Series(ts_log.iloc[0],index=ts_log.index)
predictions_ARIMA_log = predictions_ARIMA_log.add(predictions_ARIMA_diff_cumsum,fill_value=0)
predictions_ARIMA_log.head()



标签:ix,log,ts,no,attribute,ARIMA,predictions,index
From: https://blog.51cto.com/emanlee/8142531

相关文章

  • Your shell has not been properly configured to use 'conda activate'.
     #./condaactivatepy38CommandNotFoundError:Yourshellhasnotbeenproperlyconfiguredtouse'condaactivate'.Toinitializeyourshell,run   $condainit<SHELL_NAME>Currentlysupportedshellsare: -bash -fish -tcsh -xonsh -......
  • in org.springframework.cache.annotation.ProxyCachingConfiguration required a be
    我的项目是springboot项目,在启动过程中报错如何下Parameter0ofmethodcacheAdvisorinorg.springframework.cache.annotation.ProxyCachingConfigurationrequiredabeanoftype'org.springframework.cache.interceptor.CacheOperationSource'thatcouldnotbefound......
  • BSP视频教程第28期:CANopen主从机组网实战,CAN词典工具使用方法以及吃透PDO玩法
    视频教程汇总帖:https://www.armbbs.cn/forum.php?mod=viewthread&tid=110519 本期视频的实战性较强,涉及到的内容比较多,特别是PDO同步周期和同步非周期玩法要吃透。视频教程:https://www.bilibili.com/video/BV1zy4y1A7HS/视频提纲:参考资料:CANopen主从机代码,CAN词......
  • InnoDB 存储引擎之 Insert Buffer / Change Buffer
    Mysql5.7InnoDB存储引擎整体逻辑架构图一、索引概述CREATETABLE`t_user`(`id`int(10)unsignedNOTNULLAUTO_INCREMENTCOMMENT'主键id',`name`varchar(32)NOTNULLDEFAULT''COMMENT'姓名',`age`smallint(4)NOTN......
  • PageOffice保存时The file format is not allowed
    情景描述:最新用PageOffice做word在线编辑功能,但是保存时一直报错Thefileformatisnotallowed。如下图:问题分析:把word文件放到官方demo中,编辑保存没有问题,最后排查到是pageofficeCtrl.WebOpen传入的参数DocumentURL问题。//保存时出现错误pageofficeCtrl.WebOpen("C:\\Reso......
  • 无法加载文件 E:\nodejs\node_global\npm.ps1,因为在此系统上禁止运行脚本。有关详
    npminstall报错解决办法打卡windospowershell并且以管理员运行输入命令set-executionpolicyremotesignedY......
  • 2023NOIP A层联测22 差后队列
    2023NOIPA层联测22差后队列挺有意思的期望题,题解做法应该是DP,但是我又双叒写出奇怪的做法……思路除去最大值外的元素个数的倒数就是这一轮取到某个数的概率,而最大值是特殊的情况,在被替代之前或作为最后一个数被弹出之前,不参与计算。对于操作0的输出和操作1的输出分开......
  • 10.31 NOIP模拟测试
    10.31NOIP模拟测试赛时先看题,T1有一点思路,T2是我不擅长的期望计数,但看起来还是可以试一试,T3数据范围看起来是NP,想了一下搜索但没有一下想出来,T4一眼大数据结构,最后做。T1想了一下前缀和,去上了个厕所,中途想出后缀和和前缀和比较,回去写看打样例发现不仅要比较相邻的,还要比......
  • MYSQL innoDB CLuster搭建
    机器信息节点主机名IP地址安装软件节点1yanglinux01192.168.222.128mysql,mysql-shell,mysql-router,MGR-Primary节点2yanglinux02192.168.222.132mysql,mysql-shell,mysql-router,MGR-Secondary节点3yanglinux03192.168.222.133mysql,mysql-shell,MGR-Secondary三台机器分别......
  • 洛谷 P2290 [HNOI2004] 树的计数(Prufer序列,Cayley 公式)
    传送门解题思路关于Prufer序列的构造,见OI-wiki这里直接放结论:一个Prufer序列与一个无根树一一对应度数为\(d_i\)的节点在序列中出现了\(d_i-1\)次\(\sum(d_i-1)=n-2\)n个点的完全图的生成树有\(n^{n-2}\)种所以相当于n-2个数(有重复的)进行全排列,答案即为:\[\frac......