Home > other >  Ndata as a function of the independent variables
Ndata as a function of the independent variables

Time:10-07

The following problems numpy, could you tell me how to solve?
The code

 
The import numpy as np
A=np. Array ([0, 1])
Def f (x) :
Return [0, 1] [x]
F (a)


Feedback error message:
TypeError: only integer scalar arrays can be converted to a scalar index

Who know what reason be excuse me?
  • Related