@@ -482,20 +482,47 @@ def mean(self, *, skip_nulls: bool = True) -> Scalar:
482
482
dtypes.
483
483
"""
484
484
485
- def std (self , * , skip_nulls : bool = True ) -> Scalar :
485
+ def std (self , * , correction : int | float = 1 , skip_nulls : bool = True ) -> Scalar :
486
486
"""
487
487
Reduction returns a scalar. Must be supported for numerical and
488
488
datetime data types. Returns a float for numerical data types, and
489
489
datetime (with the appropriate timedelta format string) for datetime
490
490
dtypes.
491
- """
492
491
493
- def var (self , * , skip_nulls : bool = True ) -> Scalar :
492
+ Parameters
493
+ ----------
494
+ correction
495
+ Degrees of freedom adjustment. Setting this parameter to a value other
496
+ than ``0`` has the effect of adjusting the divisor during the
497
+ calculation of the standard deviation according to ``N-correction``,
498
+ where ``N`` corresponds to the total number of elements over which
499
+ the standard deviation is computed. When computing the standard
500
+ deviation of a population, setting this parameter to ``0`` is the
501
+ standard choice (i.e., the provided column contains data
502
+ constituting an entire population). When computing the corrected
503
+ sample standard deviation, setting this parameter to ``1`` is the
504
+ standard choice (i.e., the provided column contains data sampled
505
+ from a larger population; this is commonly referred to as Bessel's
506
+ correction). Fractional (float) values are allowed. Default: ``1``.
507
+ skip_nulls
508
+ Whether to skip null values.
509
+ """
510
+
511
+ def var (self , * , correction : int | float = 1 , skip_nulls : bool = True ) -> Scalar :
494
512
"""
495
513
Reduction returns a scalar. Must be supported for numerical and
496
514
datetime data types. Returns a float for numerical data types, and
497
515
datetime (with the appropriate timedelta format string) for datetime
498
516
dtypes.
517
+
518
+ Parameters
519
+ ----------
520
+ correction
521
+ Correction to apply to the result. For example, ``0`` for sample
522
+ standard deviation and ``1`` for population standard deviation.
523
+ See `Column.std` for a more detailed description.
524
+ skip_nulls
525
+ Whether to skip null values.
499
526
"""
500
527
501
528
def is_null (self ) -> Column :
0 commit comments