小编Anu*_*han的帖子

属性错误:列表对象没有属性“apply”

time_weight = list(100*np.exp(np.linspace(-1/divisor, -(num_steps-1)/divisor, num_steps))).apply(lambda x:int(x))
Run Code Online (Sandbox Code Playgroud)

当我尝试这样做时,我在 Python 3.7 中收到以下错误。

AttributeError:“列表”对象没有属性“应用”

有人能帮忙吗?

python numpy list attributeerror python-3.7

3
推荐指数
1
解决办法
2万
查看次数

标签 统计

attributeerror ×1

list ×1

numpy ×1

python ×1

python-3.7 ×1