I'm trying to find y = mx + b for a variety of different datasets. I've tried using:
slope_1, intercept_1 = linregress(values_1)
where values_1
is a Series type data.
bin_1 | values |
---|---|
5th_per | 10 |
25th_per | 24 |
50th_per | 28 |
75th_per | 34 |
90th_per | 50 |
95th_per | 65 |
However, whenever I try to run the code, I get the error, IndexError: tuple index out of range
.
I sort of understand the error, but am not sure how to fix this. Any suggestions on how to go about this or any other ways of finding the linear regression?