]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Minor kde() docstring nit: make presentation order match the function signature ...
authorRaymond Hettinger <rhettinger@users.noreply.github.com>
Fri, 15 Mar 2024 19:02:10 +0000 (14:02 -0500)
committerGitHub <noreply@github.com>
Fri, 15 Mar 2024 19:02:10 +0000 (14:02 -0500)
Lib/statistics.py

index 7924123c05b8c375bb0b3edf24c8271b1a9350cc..5d636258fd442b23dde2f7ef78402e288419e514 100644 (file)
@@ -963,7 +963,7 @@ def kde(data, h, kernel='normal'):
             supported = sample[i : j]
             return sum(K((x - x_i) / h) for x_i in supported) / (n * h)
 
-    pdf.__doc__ = f'PDF estimate with {kernel=!r} and {h=!r}'
+    pdf.__doc__ = f'PDF estimate with {h=!r} and {kernel=!r}'
 
     return pdf