https://github.com/python/cpython/commit/484e025049d43c400d27097d969d3971076eff12
commit: 484e025049d43c400d27097d969d3971076eff12
branch: 3.14
author: Miss Islington (bot) <[email protected]>
committer: rhettinger <[email protected]>
date: 2026-09-20T23:58:24-05:00
summary:

[3.14] gh-154942: Document the kde() data cache logic. (gh-157725) (gh-157884)

files:
M Doc/library/statistics.rst

diff --git a/Doc/library/statistics.rst b/Doc/library/statistics.rst
index 614f5b905a4a2e..89e597a19b2d54 100644
--- a/Doc/library/statistics.rst
+++ b/Doc/library/statistics.rst
@@ -309,6 +309,11 @@ However, for reading convenience, most of the examples 
show sorted sequences.
    .. image:: kde_example.png
       :alt: Scatter plot of the estimated probability density function.
 
+   Because the returned ``f_hat`` function is typically called many times,
+   it caches the *data* for performance. To support dynamic datasets, this
+   cache automatically refreshes whenever the length of the *data* changes.
+   This allows new samples to be added as they become available.
+
    .. versionadded:: 3.13
 
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to