我有一个函数,它接收一个Pandas series并返回一个DataFrame,其中包含对原始Series的一些计算,并且具有与原始Series名称不同的列名:AttributeError: 'DataFrame' object has no attribute 'name'
The aboveexception was the direct cause of th
当我尝试使用pandas数据框的.ix属性来拉出列时,例如df.ix[:, 'col_header'],我得到了这个错误。AttributeError: 'DataFrame' object has no attribute 'ix'
今天上午脚本运行正常,但今天下午我在一个全新安装了Pandas的新Linux环境中运行了它
我正在从excel文件中读取数据,在将excel数据解析成数据流时,我抛出了这个属性错误。 构建数据帧,以便获取数据。我遗漏了什么?__getattribute__(self, name)
AttributeError: 'DataFrame' object has no attribute 'parse'