Python 'AttributeError: 'function' object has no attribute 'min''
问题 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 apply the Scipy function for spline interpolation to an array of values. My code currently looks like this: import numpy as np import scipy as sp from scipy.interpolate import interp1d x=var x1 = ([0.1,0.3,0.4]) y1 = [0.2,0.5,0.6] new_length = 25 new_x = np.linspace(x.min(), x.max(), new_length) new_y = sp.interpolate.interp1d(x, y