Series.sample
Returns a random sample of items from an axis of object.
danfo.Series.sample(num)
Returns:
**** return {Promies} resolves to Series
Example
Specify a seed when sampling
Last updated
Returns a random sample of items from an axis of object.
danfo.Series.sample(num)
Returns:
**** return {Promies} resolves to Series
Example
Last updated
Parameters | Type | Description | Default |
---|---|---|---|
num
Int
The number of rows to return.
options
Object
seed: An integer specifying the random seed that will be used to create the distribution. Ensures reproducibility of generated samples.
{
seed: 1
}