TypingError: Failed in nopython mode pipeline (step: nopython frontend)
问题 I am trying to write my first function using numba jit, I have a pandas dataframe that I need to iterate through and find the root mean square for each 350 points, since the for loop of python is quite slow I decided to try numba jit, the code is: @jit(nopython=True) def find_rms(data, length): res = [] for i in range(length, len(data)): interval = np.array(data[i-length:i]) interval =np.power(interval, 2) sum = interval.sum() resI = sum/length resI = np.sqrt(res) res.appennd(resI) return res