Skip to content

Commit eb67e74

Browse files
Reuse main-text rng in Scipy lecture
1 parent bda4c57 commit eb67e74

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

lectures/scipy.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,6 @@ For example, `scipy.stats.linregress` implements simple linear regression
189189
```{code-cell} python3
190190
from scipy.stats import linregress
191191
192-
rng = np.random.default_rng()
193192
x = rng.standard_normal(200)
194193
y = 2 * x + 0.1 * rng.standard_normal(200)
195194
gradient, intercept, r_value, p_value, std_err = linregress(x, y)

0 commit comments

Comments
 (0)