Skip to content

Commit dd0ac83

Browse files
committed
add docstring to the density method
1 parent 178030d commit dd0ac83

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/statista/time_series.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,11 @@ def histogram(
737737

738738
def density(self, **kwargs) -> Tuple[Figure, Axes]:
739739
"""
740-
Plots a density plot of the time series data.
740+
Plots a density (KDE) plot of the time series data.
741+
742+
- KDE is a non-parametric method for estimating the probability density function of a random variable.
743+
- It provides a smoothed estimate of the underlying probability distribution based on observed data points
744+
- This function uses Gaussian kernels and includes automatic bandwidth determination
741745
742746
Args:
743747
**kwargs: dict, optional

0 commit comments

Comments
 (0)