I am using the scipy stats module to calculate the linear regression. ie

```
 slope, intercept, r_value, p_value, std_err 
= stats.linregress(data['cov_0.0075']['num'],data['cov_0.0075']['com'])

```

where `data` is a dictionary containing several `'cov_x'` keys corresponding to a dataframe with columns `'num'` and `'com'`

I want to be able to loop through this dictionary and do linear regression on each `'cov_x'`. I am not sure how to do this. I tried:

```
for i in data:
    slope_+str(i), intercept+str(i), r_value+str(i),p_value+str(i),std_err+str(i)= stats.linregress(data[i]['num'],data[i]['com'])

```

Essentially I want len(x) slope\_x values.