Minor kde() docstring nit: make presentation order match the function signature (#116876)

This commit is contained in:
Raymond Hettinger 2024-03-15 14:02:10 -05:00 committed by GitHub
parent 950667ed07
commit 0c7dc494f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View 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