sampling_group_systematic ¶
sampling_group_systematic(n: int) -> FeatureSpec
lets_plot's systematic sampling of whole groups. Not applied by ggrust.
Built as lets_plot builds it, so ported code runs; rendering warns
(GgrustWarning) and draws every row.
Parameters:
-
n(int) –Number of groups to keep.
Returns:
-
FeatureSpec–The lets_plot spec.
Examples:
>>> from ggrust import *
>>> sampling_group_systematic(3).as_dict()
{'name': 'group_systematic', 'n': 3}