sampling_pick ¶
sampling_pick(n: int) -> FeatureSpec
lets_plot's first-n sampling. 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 rows to keep.
Returns:
-
FeatureSpec–The lets_plot spec.
Examples:
>>> from ggrust import *
>>> sampling_pick(100).as_dict()
{'name': 'pick', 'n': 100}