Series.sample
Returns a random sample of items from an axis of object.
danfo.Series.sample(num)
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
}
Returns:
**** return {Promies} resolves to Series
Example
Specify a seed when sampling
Last updated