腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
AttributeError
:“”
cupy.core.core.ndarray
“”
对象
没有
属性
“”
iloc
“”
python
、
machine-learning
、
rapids
、
cudf
但是得到了一个错误: --------------------------------------------------------------------------- 454 X_train = X.
iloc
[0:train_size]--> 456
浏览 54
提问于2021-05-03
得票数 0
回答已采纳
2
回答
'
cupy.core.core.ndarray
‘
对象
没有
属性
’唯一‘
python
、
cupy
、
rapids
但是,我似乎无法使用codes获得codes.unique()的唯一值codes.unique()
AttributeError
Traceback (most recent call last) <ipy
浏览 2
提问于2021-04-18
得票数 1
回答已采纳
1
回答
AttributeError
:'list‘
对象
没有
属性
'
iloc
’
python
、
pandas
、
dataframe
0: print(i_line) Noised_Data.
iloc
[i_line, :] = Data.
iloc
last): File "C:/Users/pedro.Grisard/Desk
浏览 1
提问于2021-07-07
得票数 1
回答已采纳
1
回答
AttributeError
:“float”
对象
没有
“”
iloc
“”
属性
“”
python
、
pandas
、
pandas-groupby
for no_confi in range(len(df)): df = df.
iloc
[no_confi,2:4] = np.nan df = df.
iloc
[no_confi,5:] = np.nan 并得到错误:
AttributeError
: 'float' objecthas no attribute '
iloc
'
浏览 185
提问于2019-07-04
得票数 1
回答已采纳
1
回答
AttributeError
:'ImageList‘
对象
没有
属性
'
iloc
’
machine-learning
、
deep-learning
、
fast-ai
、
machine-learning-model
data.add_test(test)
AttributeError
"Create an `ItemList` in `path` from the inputs in the `cols` of `df`." --> 136 inputs = df.
iloc
1 else (inputs.values[0] if not isinstance(cols
浏览 12
提问于2022-11-23
得票数 0
1
回答
Pandas:
AttributeError
:'str‘
对象
没有
属性
'
iloc
’
python
、
pandas
我试着 label=str(group['search_term'].
iloc
[i+1])) 但是它返回
AttributeError
: 'str' object has no attribute '
iloc
',我该如何修复它呢?
浏览 0
提问于2016-08-05
得票数 0
回答已采纳
4
回答
Dataframe --
AttributeError
:'NoneType‘
对象
没有
'
iloc
’
属性
python-3.x
、
dataframe
、
attributeerror
range(column): #Column is the number of columns in the dataframe 'traindata'print(traindata.shape)
AttributeError
: 'NoneType' object has no attribute
浏览 3
提问于2018-06-30
得票数 1
1
回答
AttributeError
:'numpy.ndarray‘
对象
没有
属性
'
iloc
’
pandas
、
numpy
(0,1),float) x_train,x_val=train.
iloc
[train_indices],train.
iloc
[val_indices] y_train,y_val=y.
iloc
[train_indices],y.
iloc
[val_indicesif self.accLabel: self.accLabel.set("Accuracy of Ense
浏览 0
提问于2018-11-07
得票数 14
2
回答
AttributeError
:'collections.OrderedDict‘
对象
没有
属性
'
iloc
’
python
、
excel
、
pandas
pd.read_excel(file)print(xl.
iloc
[0, 1]) #this throws an error
AttributeError
:'collections.OrderedDict‘
对象
没有
属性
'
iloc
’ 我已经尝试搜索堆叠溢出
浏览 4
提问于2019-12-06
得票数 0
1
回答
如何消除使用
iloc
函数进行数据访问时出现的错误?
python
、
pandas
、
data-science
我试图根据
iloc
中指定的条件为列'fare_amount‘设置0值,最后得到
属性
错误。“‘dataset”是Dataframe
对象
。
AttributeError
:'int‘
对象
没有
属性
'loc’ dataset = dataset.loc[dataset['fare_amount'] !
浏览 0
提问于2018-11-27
得票数 0
2
回答
‘时间戳’
对象
没有
属性
‘时间戳’
python
、
pandas
、
timestamp
import pandas as pd print type(df.
iloc
[-1].name)ts = df.
iloc
[-1].name.timestamp()
AttributeError
:“时间戳”
对象
没有
属性
“时间戳”
浏览 4
提问于2016-06-21
得票数 2
2
回答
几只熊猫DataFrames的名字循环
python
、
pandas
这个失败(
AttributeError
:'str‘
对象
没有
属性
'
iloc
'): name.
iloc
[
浏览 1
提问于2018-03-04
得票数 0
回答已采纳
1
回答
如何在jypterLab中修复“Series”
对象
中
没有
属性
“reshape”的问题
python
、
attributeerror
、
recommendation-engine
--------------------------------------------------------------------------- 3 5275 5276 def __setattr__(self, name: str, valu
浏览 1
提问于2020-02-07
得票数 1
3
回答
根据列名删除Pandas Dataframe列
python
、
pandas
、
dataframe
、
numpy
、
data-science
但是,我收到了这个错误消息:
AttributeError
:'numpy.float64‘
对象
没有
'PM’
属性
。我不确定如何解释这个错误消息。我也不明白为什么在消息中提到numpy,因为dataframe df是一个pandas
对象
。for j in range(0,len(df.columns)-1): df.drop(j, axis=1)
AttributeErr
浏览 51
提问于2021-10-19
得票数 1
2
回答
查找两行之间传递的时间(datatime)
python
、
pandas
、
timestamp
、
timedelta
Subject.
iloc
[1, 0] is equal to TypeError
浏览 7
提问于2020-05-01
得票数 0
回答已采纳
1
回答
AttributeError
:'list‘
对象
没有
'loc’
属性
python
当我尝试执行一些函数时,错误显示:
AttributeError
:'list‘
对象
没有
'loc’
属性
data = ['dataA','dataB','dataC','dataD'] ma = 6 data[smaString] = data.<em
浏览 321
提问于2021-01-29
得票数 0
回答已采纳
1
回答
如何用地质公园来制作一只单行熊猫?
python
、
pandas
、
geopandas
当我试图遍历gpd的行时,它表明pd系列
没有
属性
(to_file),该
属性
似乎可用于数据格式。for i in range(0,5): print(type(dftemp)) dftemp.to_file(path + '//'+ 'z' + str(listi.value[0].split('.')[0]) + '_' + str(i) + '.
浏览 1
提问于2022-01-19
得票数 0
回答已采纳
1
回答
转换Pandas数据帧的偶数列的DateFormat
pandas
、
type-conversion
、
strftime
我过滤了even列并使用dt.strftime,如下所示:df.
iloc
[:, even_cols] = df.
iloc
[:,even_cols].dt.strftime('%Y-%m-%d')"
AttributeError
:'DataFrame‘
对象
没有
’dt‘
属性
“
浏览 0
提问于2018-07-07
得票数 1
1
回答
如何传递NAN值?
pandas
、
nan
20.20.20.2030.30.30.30当我使用socket.getfqdn()来知道IP地址的主机名时,当它面对NAN值时,会出现一条错误消息,
AttributeError
:‘
AttributeError
’
对象
没有
属性
‘条带’。if data.
iloc
[a, 0] = NAN有办法这样做吗?len(data) - 1
浏览 3
提问于2019-10-30
得票数 0
回答已采纳
2
回答
熊猫数据中行相关的正确方法
python
、
numpy
、
pandas
pdexample_df = pd.DataFrame(np.random.randn(10, 30), np.arange(10))但是,如果DataFrame是混合类型的,则即使只选择数字条目的子集,在计算相关性时也会出现错误:example_df.
iloc
[1, :-1].corr(example_d
浏览 0
提问于2015-05-17
得票数 4
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
Pandas常用的两种数据类型之“Series”
Python对象属性的那些事
python渐进-类4
Python3.6内置函数——hasattr
Pandas:Series和DataFrame数据选择方法
热门
标签
更多标签
云服务器
ICP备案
实时音视频
对象存储
即时通信 IM
活动推荐
运营活动
广告
关闭
领券