0
votes

So when I run this line on Jupyter notebook.
stats.linregress(xdata, data)
The result is
LinregressResult(slope=8.762662815890456, intercept=-583.1060100267368, rvalue=0.9764595396878868, pvalue=0.0, stderr=0.0710610032681328, intercept_stderr=31.20585863555493)

Then if I run this code
slope, intercept, r_value, p_value, std_err,std_err_intercept = stats.linregress(xdata, data)
There is an error:
ValueError: not enough values to unpack (expected 6, got 5)

But if you see there are 6 values to unpack and I need this value for my calculations could someone help, please