Skip to content

Commit 88cd875

Browse files
headtr1ckclaude
andcommitted
Refer back to the np.vectorize performance warning
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 585f838 commit 88cd875

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎advanced/apply_ufunc/automatic-vectorizing-numpy.ipynb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@
438438
"source": [
439439
"### Performance\n",
440440
"\n",
441-
"The difference matters for larger arrays. Let's compare both approaches on the full dataset with 2920 time steps and 53 longitudes, without the `print` statements:"
441+
"Remember the warning above that `numpy.vectorize` is essentially a for loop? Every call of our function adds Python overhead, so the number of loop iterations matters for larger arrays. Let's compare both approaches on the full dataset with 2920 time steps and 53 longitudes, without the `print` statements:"
442442
]
443443
},
444444
{

0 commit comments

Comments
 (0)