Python 'AttributeError: 'function' object has no attribute 'min''

后端 未结 6 2193
予麋鹿
予麋鹿 2021-02-07 15:12

Firstly, apologies for how obvious these two questions seem to be; I\'m very very new to this and don\'t have a clue what I\'m doing.

I\'m trying to write something to a

6条回答
  •  无人及你
    2021-02-07 15:46

    Change that line to:

    new_x = np.linspace(min(x), max(x), new_length)
    

    min and max are not attributes of lists, they are their own functions.

提交回复
热议问题