new error in old code in numpy exp
问题 Recently I was working on some data for which I was able to obtain a curve using curve_fit after saving the plot and the values obtained I returned to the same code later only to find it does not work. #! python 3.5.2 import numpy as np import matplotlib.pyplot as plt import scipy.stats from scipy.optimize import curve_fit data= np.array([ [24, 0.176644513], [27, 0.146382841], [30, 0.129891534], [33, 0.105370908], [38, 0.077820511], [50, 0.047407538]]) x, y = np.array([]), np.array([]) for