Commit d35eb83
FIX: lecture cleanup batch from the 2026-08 tracker audit (#595)
* FIX: lecture cleanup batch from the 2026-08 tracker audit
- polars: guard Exercise 1 first/last with drop_nulls (#589)
- polars, pandas: migrate the remaining legacy np.random.* call sites
to the Generator API (#552)
- pandas_panel: use direct raw.githubusercontent.com data URLs (#580)
- python_by_example: include the rng line in the white-noise snippet
and correct the line count (#552)
- functions, scipy: define rng in the cells that use it (#552)
- numpy: document DiscreteRV's seed parameter (#552) and reference
qe.Timer() instead of the retired tic/toc wording (#594)
- about_py: standardize on PyTorch (#552)
- autodiff: split the PRNG key once into three single-use keys (#529)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* FIX: drop redundant rng re-creation in functions.md
The three added `rng = np.random.default_rng()` lines re-bound a generator
that is already created at the top of the "Random Draws" section and carried
forward through notebook state, so they changed nothing at execution time
while adding boilerplate to cells whose subject is function structure.
Reverts functions.md to match main.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* FIX: tidy remaining rng bindings in scipy.md and polars.md
scipy.md: drop the redundant rng re-creation before the linregress example,
which re-bound a generator already created earlier in the lecture. Reverts
scipy.md to match main.
polars.md: rename the seeded benchmark generator to bench_rng so it no longer
shadows the unseeded rng created in the Series section with one carrying
different semantics.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* Revert the bench_rng rename in polars.md
Reusing the rng name for the seeded benchmark generator is fine: the rename
was a readability preference with no effect on output, and nothing downstream
of the benchmark cell reads rng. The seed is unchanged, so the benchmark data
stays reproducible.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>1 parent 6ee9cdb commit d35eb83
7 files changed
Lines changed: 32 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
| 142 | + | |
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| |||
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
352 | | - | |
| 352 | + | |
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
353 | | - | |
| 353 | + | |
| 354 | + | |
354 | 355 | | |
355 | 356 | | |
356 | | - | |
357 | | - | |
| 357 | + | |
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1252 | 1252 | | |
1253 | 1253 | | |
1254 | 1254 | | |
1255 | | - | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
1256 | 1260 | | |
1257 | 1261 | | |
1258 | 1262 | | |
| |||
1431 | 1435 | | |
1432 | 1436 | | |
1433 | 1437 | | |
1434 | | - | |
| 1438 | + | |
1435 | 1439 | | |
1436 | 1440 | | |
1437 | 1441 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
| 93 | + | |
93 | 94 | | |
94 | 95 | | |
95 | 96 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | | - | |
| 200 | + | |
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
| |||
506 | 506 | | |
507 | 507 | | |
508 | 508 | | |
509 | | - | |
| 509 | + | |
510 | 510 | | |
511 | 511 | | |
512 | 512 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
| 82 | + | |
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
| |||
114 | 115 | | |
115 | 116 | | |
116 | 117 | | |
117 | | - | |
| 118 | + | |
118 | 119 | | |
119 | 120 | | |
120 | 121 | | |
| |||
463 | 464 | | |
464 | 465 | | |
465 | 466 | | |
466 | | - | |
| 467 | + | |
467 | 468 | | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
473 | 474 | | |
474 | 475 | | |
475 | 476 | | |
| |||
685 | 686 | | |
686 | 687 | | |
687 | 688 | | |
688 | | - | |
| 689 | + | |
689 | 690 | | |
690 | 691 | | |
691 | 692 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
| 176 | + | |
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| 180 | + | |
180 | 181 | | |
181 | 182 | | |
182 | 183 | | |
183 | 184 | | |
184 | 185 | | |
185 | | - | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
186 | 189 | | |
187 | 190 | | |
188 | | - | |
| 191 | + | |
189 | 192 | | |
190 | 193 | | |
191 | 194 | | |
| |||
0 commit comments