腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
2
回答
"
DataFrame
“
对象
没有
”
reshape
“
属性
、
、
我想在
没有
标题的CSV文件中重塑一些数据,但我一直收到此错误这是我的脚本,我只想重塑第二列的数据start = 0 if (i + 1)%10 == 0: result = df.iloc[start:i+1].
reshape
浏览 50
提问于2017-02-15
得票数 13
回答已采纳
2
回答
“列表”
对象
没有
属性
“
reshape
”
、
我一直在跟踪关于python的视频教程,无论键入与视频完全相同的代码,我都收到了一个
属性
错误。104.0, 52.0, 8.0],percentage = 100*A/cal.
reshape
(1,4)
属性
错误指向百分比变量,说明列表中
没有
属性
“
reshape
”。请调用.values.
reshape
(.)
浏览 5
提问于2022-02-17
得票数 2
回答已采纳
1
回答
‘'tuple’
对象
没有
属性
'
reshape
‘
、
(len(population), 1), population.
reshape
(len(population),1)), axis=1) 5 守则如下:import matplotlib.pyplot as plt %matplotlib*[(float(row['Population']), float(row['
浏览 1
提问于2018-10-03
得票数 1
回答已采纳
2
回答
AttributeError:“str”
对象
没有
“”
reshape
“”
属性
“
、
446ffaa5d87e0110404c75f0b0cff157#filemnist_augmentation_random_forest-py 当我运行这段代码时,我得到了这个错误: AttributeError:“str”
对象
没有
“”
reshape
“”
属性
“ 进程已完成,退出代码为%1 def shift_image(image, dx, dy): image = image.
reshape
((28, 28))
浏览 50
提问于2021-04-21
得票数 0
1
回答
AttributeError:“”list“”
对象
没有
属性
“”
reshape
“”
、
、
、
、
我有以下Python脚本部分:我得到了这个错误:假设X是一个Numpy数组,我按如下方式获得: for img in range(len(names)):
浏览 0
提问于2017-12-26
得票数 0
1
回答
Python
属性
错误:“int”
对象
没有
属性
“
reshape
”
、
、
、
next_day_open_values, nx, ny = next_day_open_values.shape---> 22 next_day_open_values = next_day_open_values.
reshape
y_normaliser.fit((np.expand_dims( next_day_open_v
浏览 2
提问于2020-02-10
得票数 0
1
回答
无法将火花放电数据帧加载到决策树算法中。它说不能使用pyspark数据框架
、
、
、
、
train_test_split(x,y,test_size = 0.1,random_state = 42)RM.fit(X_train.
reshape
(1,-1),y_train)` TypeError:预期的序列或类似数组的序列,得到{<}class‘pyspk.sql.
dataframe
.datFrame’> 在这个错误之后,我做了这样的事情train_test_split(x,y,test_size = 0.1,random_state = 42) 6 RM = R
浏览 2
提问于2019-11-22
得票数 0
回答已采纳
2
回答
如何解决
DataFrame
到LSTM整形时的误差
、
、
、
、
我有像这样形状(6042,6)的CSV数据,并使用
DataFrame
调用它:我想用它作为LSTM的输入。由于
DataFrame
没有
reshape
属性
,所以我将其更改为NumPy数组并试图对其进行整形,但得到了错误:我尝试使用以下代码:train_data = train_data
浏览 11
提问于2021-12-06
得票数 0
回答已采纳
1
回答
:'
DataFrame
‘
对象
没有
属性
、
、
、
我有一个包含各种列的CSV文件,在过去的几个月里,一切都很完美,直到我更新了该文件并获得了新的信息,而现在只有一个列似乎
没有
被Python选中。然后,我确保在每个列中都
没有
空白,在单元格的开头,使用excel中的Trim函数,并对数据进行左对齐。添加"skipinitialspace=True“-
没有
区别。exchange = pd.
DataFrame
(df1.Value) dates
浏览 0
提问于2018-06-09
得票数 0
回答已采纳
2
回答
'
DataFrame
‘
对象
没有
属性
'to_
dataframe
’
= ws.datasets['loanapp_c.csv'] dataset = ds.to_
dataframe
in () 33 ds = pd.read_csv('desktop/python ML/loanapp_c.csv') ---> 34 dataset = ds.to_
dataframe
_getattribute
浏览 0
提问于2019-02-24
得票数 1
回答已采纳
2
回答
'
DataFrame
‘
对象
没有
属性
、
AttributeError:'
DataFrame
‘
对象
没有
属性
'id’ train_df['id'] = train_df.id.apply(lambda x: int(x))new_index, fill_value='missing') AttributeError: '
DataFrame
浏览 2
提问于2019-11-08
得票数 0
回答已采纳
1
回答
AttributeError:
DataFrame
对象
没有
属性
“
DataFrame
”
、
、
、
当我试图将SQL查询的输出转换为jupyter记事本中的
dataframe
时,我会得到以下错误。我已经检查过其他类似主题的帖子,但这是一个不同的错误。有人能解释一下为什么会这样吗。代码:k = %sql select * from table1 错误: AttributeError:'
DataFrame
‘
对象
没有
属性
'
DataFrame
’
浏览 0
提问于2019-03-01
得票数 0
1
回答
Django在file字段中将csv文件返回给用户
、
、
label_name = 'labeled' + data.nameaxis=1)labeled_data_file = pd.
DataFrame
(data=header=True) instance.labeled_data.save(label_name, labeled_data_file,
浏览 1
提问于2019-01-30
得票数 0
回答已采纳
1
回答
海热图错误:“AttributeError:'NoneType‘
对象
没有
属性
'
reshape
’”
、
、
、
、
我想要创建一个海运热图来可视化在
DataFrame
中指示的相关性。:我收到一条很长的错误消息,它的结尾是:--> 926 self._mapped_colors = self.to_rgba(self._A, self._antialiased, se
浏览 4
提问于2021-07-08
得票数 1
1
回答
Dataframe
AttributeError:“
DataFrame
”
对象
没有
属性
“icol”
、
Attribute error: '
Dataframe
' object has no attribute 'icol' import pandas as pd import numpy
浏览 13
提问于2017-05-05
得票数 1
8
回答
“模块”
对象
没有
属性
“
DataFrame
”
、
、
关于下列代码:df = pd.
DataFrame
(np.random.rand(12,2), columns=['Apples', 'Oranges'] )df.boxplot(by='Categories')'pandas' object has no attribute '
DataFrame
浏览 6
提问于2013-12-16
得票数 47
回答已采纳
1
回答
'
DataFrame
‘
对象
没有
属性
'schema’
low_memory=false, sep="|", error_badlines=False)AttributeError:'
DataFrame
‘
对象
没有
属性
'schema’
浏览 9
提问于2021-12-13
得票数 0
1
回答
'
DataFrame
‘
对象
没有
属性
'Book’
、
、
import pandas as pdExpenses = data[data.Book == 'Expenses'] AttributeError:'
DataFrame
‘
对象
没有
属性
'Book'
浏览 4
提问于2019-10-07
得票数 0
回答已采纳
1
回答
'
DataFrame
‘
对象
没有
属性
'plt’
、
、
__getattribute__(self, name) 我怎样才能纠正这个错误?
浏览 18
提问于2022-11-26
得票数 0
1
回答
'
DataFrame
‘
对象
没有
属性
'copy’
、
、
我有一个
dataframe
,我想要做一个深刻的副本,以便我可以修改副本,并使用它在进一步的处理。我在Azure数据库工作。我的
dataframe
名为"a“,我尝试了以下命令:当我运行它时,会遇到以下错误:我还尝试使用'iloc‘或'loc’函数来创建一个新的
dataframe
,只包含我需要的列,但是同样的错误('<
浏览 0
提问于2019-07-07
得票数 4
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
Femap对象的属性
python面向对象基础2:设置对象属性
JS对象属性排序小技巧
Python对象属性的那些事
Excel VBA(3)–对象、方法、属性
热门
标签
更多标签
云服务器
ICP备案
云直播
对象存储
腾讯会议
活动推荐
运营活动
广告
关闭
领券