Thanks for posting this for us newbies...
I had to check out 'linregress' - found out that :
linregress(x, y=None, alternative='two-sided')
Deprecated since ver 1.14.0: Inference of the two sets of measurements from a single argument x is deprecated will result in an error in SciPy 1.16.0; the sets must be specified separately as x and y.
Now use this: linregress(x, y=None)
with this being optional:
alternative{‘two-sided’, ‘less’, ‘greater’}, optional
I tell ya, years later - updates down the road always cause hiccups for us learning (or trying to learn) this material.