腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(4863)
视频
沙龙
1
回答
Caffe
:
astype
:'
NoneType
‘
对象
没有
'
astype
’
属性
python
、
attributes
、
caffe
、
faster-rcnn
/lib/fast_rcnn/test.py的第35行中,'
NoneType
‘
对象
没有
'
astype
’
属性
im_orig =im.
astype
(np.float32,copy=True) 存在AttributeError:‘
NoneType
’
对象
没有
'
astype
‘
属性
浏览 22
提问于2021-07-21
得票数 0
2
回答
AttributeError:“”
NoneType
“”
对象
没有
属性
“”
astype
“”
python-3.x
、
attributes
、
nonetype
util.read_img(self.HR_env, HR_path) img = img.
astype
AttributeError: '
NoneType
' object has no attribute '
astype
' 我试图找到发生错误的那一行的代码。.imread(path, cv2.IMREAD_UNCHA
浏览 0
提问于2019-07-30
得票数 2
1
回答
“‘float”
对象
没有
属性
“
astype
”
python
、
pandas
、
median
c_med = round(df['count'].median().
astype
(int)) 以上两种类型都会给出这个错误如果删除了
astype
(int),则答案是正确的。recent call last): c_med = round(df['count'
浏览 84
提问于2016-07-28
得票数 2
回答已采纳
1
回答
当代码评审工具声明不匹配的类型时,该怎么办?
python-3.x
、
casting
我已经放下代码一段时间了,现在它
没有
通过很多测试。错误总是一样的:如果我有一行代码看起来是这样的,我会得到一条错误消息,上面写着“错误:可能不能对不兼容的类型使用运算符'-‘;a和b的类型是numpy.array和
NoneType
": x = a -但是代码是这样写的: x = a - b - c 至: x = a.
astype
(float) - b.
astype
(float) - c.
astype
(float) 这是行不通的,因为int
没有
astype</e
浏览 15
提问于2020-04-05
得票数 0
1
回答
AttributeError:'str‘
对象
没有
'
astype
’
属性
python
、
pandas
、
attributeerror
doforms_data\Concept_script_working.pyw", line 133, in main machine_refactory.apply(lambda x : x.
astype
(str)+' '+x.name) # AttributeError
浏览 765
提问于2020-11-18
得票数 0
回答已采纳
2
回答
Medpy AttributeError:‘张量’
对象
没有
属性
'
astype
‘
python
、
tensorflow
、
keras
site-packages/medpy/metric/binary.py",文件第1200行,在__surface_distances中 AttributeError:‘张量’
对象
没有
属性
'
astype
'
浏览 5
提问于2020-03-03
得票数 2
回答已采纳
1
回答
获取"AttributeError:‘滚动’
对象
没有
属性
'
astype
'“
python
、
pandas
df = pd.DataFrame([ [1,3,5,7,np.NaN], [5,4,3,2,1], print(df.fillna( ))
浏览 0
提问于2018-11-24
得票数 1
回答已采纳
1
回答
如何修复"AttributeError:'list‘
对象
没有
属性
'
astype
'“
python-3.x
、
dataframe
、
linear-regression
、
polynomial-math
对于数据清理,我尝试了一些函数,如value_count,但
没有
帮助。你觉得这里有什么问题?)] pipe=Pipeline(Input) features=features.
astype
浏览 12
提问于2022-01-27
得票数 0
回答已采纳
1
回答
如何解决AttributeError:'list‘
对象
没有
属性
'
astype
'?
python
、
numpy
、
attributes
我只是想知道如何在python3.6.中解决
属性
错误-错误是 data = data.
astype
('float32') self.mean, self.std = np.mean(data
浏览 2
提问于2017-10-15
得票数 19
回答已采纳
1
回答
为什么我得到‘’str‘
对象
没有
属性
'
astype
'`
python
、
pandas
下面的代码片段是我的试用,但
没有
成功,抛出了'str' object has no attribute '
astype
'错误。rule=lambda x: x.
astype
(str).str.lower.contains('Yes') yesindex = teaching.loc[teaching['Students']
浏览 105
提问于2020-05-19
得票数 0
回答已采纳
2
回答
Python如何将Series类型: object转换为int
python
、
string
、
pandas
、
int
、
jupyter
我正在尝试将Series
对象
转换为整数。但我很难做到。每次我尝试一些东西,我都会犯一个新的错误。 #1.2) TypeError: int() argument must be a
浏览 0
提问于2019-07-23
得票数 0
回答已采纳
2
回答
图形创建
NoneType
python
、
networkx
、
dask
、
rapids
、
cudf
我试图从一个dask_cudf DataFrame创建一个图形,但是这个图形
没有
错误信息。我用同样的数据集也用熊猫的数据做了试验。然后我尝试了三个样本边缘。每次都有一个
NoneType
对象
。__class__From_Pandas_edgelist空手道数据集edges['Target
浏览 9
提问于2022-09-23
得票数 0
1
回答
使用
asType
() numpy将值转换为浮动
python
、
numpy
、
opencv
我已经试过了labelY = np.array(labelY).
asType
("float32")labelY.appendpersonData.isPerson,personData.isntPerson,personData.xmin,personData.ymin,personData.xmax,personData.ymax].
asType
浏览 1
提问于2018-03-22
得票数 0
1
回答
list
对象
没有
属性
'apply‘,即使它不是list
python
、
pandas
;', header=None, skiprows=1, engine='python', names=['I', 'II', 'III'])) df2 = df2['COMBINED
浏览 2
提问于2021-04-18
得票数 0
1
回答
为什么我要得到这个错误:
对象
没有
属性
'
astype
‘
python
、
python-2.7
、
jupyter-notebook
import ast .....class_mask = class_mask.
astype
AttributeError: 'NotImplementedType' object has no attribute '
astype
' 但是,每当我将myfile内容放在一个单元格中并在jupyter
浏览 4
提问于2018-01-13
得票数 1
1
回答
在python中使用Onnx模型运行推理?
python
、
machine-learning
、
predict
、
onnx
我正在尝试检查我的.onnx模型是否正确,并且需要运行推断来验证相同的输出。我找到了MXNet框架,但我似乎无法理解如何导入模型--我只有.onnx文件,除了onnx模型之外,MXNet还需要额外的输入。我不希望将.onnx转换为另一种类型的模型(比如PyTorch),
浏览 3
提问于2018-06-21
得票数 1
回答已采纳
3
回答
python AttributeError中的类型转换:“str”
对象
没有
属性
“
astype
”
python
、
pandas
、
type-conversion
df = pd.DataFrame({'a':['1.23', '0.123']})df['a'].
astype
(float)df['a'][1].
astype
(float) 给我AttributeError:'str‘
对象
浏览 6
提问于2017-01-29
得票数 10
回答已采纳
1
回答
层用于输入,将数据类型设置为uint8
machine-learning
、
computer-vision
、
deep-learning
、
caffe
、
pycaffe
但是,我从日志中看到,
Caffe
对我的所有数据都使用了数据类型float32。这太浪费了,因为我只处理8位整数。有
没有
办法告诉
caffe
使用dtype='uint8'top[0].data[...] = someArray.
astype
(np.uint8, copy=False)
浏览 1
提问于2016-05-27
得票数 2
回答已采纳
2
回答
使用
astype
( int )将时间戳转换为int
python
、
pandas
、
timestamp
、
integer
但是Timestamp
对象
没有
属性
astype
。运行以下代码:我知道,对于一列数据,我可以:>
浏览 3
提问于2021-03-05
得票数 2
回答已采纳
2
回答
如何将'np.inf‘转换为整数类型?
python
、
numpy
、
int
int(np.inf)(np.inf).
astype
(int64) AttributeError:“float”
对象
没有
属性
“”
astype
浏览 0
提问于2019-06-29
得票数 1
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
Python开发入门之Numpy的使用
给 iOS 开发者的 python 学习日记十二
Python开发入门教程之Numpy的使用详解
老邓Python笔记之Numpy(1)
Python数据分析入门日记Day2:科学技术库Numpy:数组的基本函数
热门
标签
更多标签
活动推荐
运营活动
广告
关闭
领券