@@ -560,21 +560,29 @@ def histogram(self, ary, bins=None, range=None, weights=None, axis=-1, density=T
560560 return histogram_ufunc (ary , bins , range , shape_from_1st = True )
561561
562562 def kde (self , ary , axis = - 1 , circular = False , grid_len = 512 , ** kwargs ):
563- """Compute of kde on array-like inputs.
563+ """Compute KDE on array-like inputs.
564564
565565 Parameters
566566 ----------
567567 ary : array-like
568568 axis : int, sequence of int or None, default -1
569569 circular : bool, default False
570570 grid_len : int, default 512
571- **kwargs
571+ **kwargs : dict, optional
572+ Additional keyword arguments passed to the KDE implementation.
573+ Supported arguments include:
574+
575+ * bw : str or float, optional
576+ The bandwidth of the kernel. Options include "scott" (default),
577+ "silverman", "isj", and "experimental", or a positive float.
578+ * adaptive : bool, optional
579+ Whether to use an adaptive KDE. Defaults to False.
572580
573581 Returns
574582 -------
575583 grid, pdf, bw : array-like
576584 `grid` and `pdf` will have the same shape: the same as `ary` minus the dimensions
577- in `axis` plus an extra dimension of lenght `grid_len`. Same for `bw`
585+ in `axis` plus an extra dimension of length `grid_len`. Same for `bw`
578586 except it will not have the extra dimension.
579587 """
580588 ary , axes = process_ary_axes (ary , axis )
0 commit comments