mirror of https://github.com/python/cpython
Minor kde() docstring nit: make presentation order match the function signature (#116876)
This commit is contained in:
parent
950667ed07
commit
0c7dc494f2
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue