Panel4D.sample()
pandas.Panel4D.sample
-
Panel4D.sample(n=None, frac=None, replace=False, weights=None, random_state=None, axis=None)
-
Returns a random sample of items from an axis of object.
New in version 0.16.1.
Parameters: n : int, optional
Number of items from axis to return. Cannot be used with
frac
. Default = 1 iffrac
= None.frac : float, optional
Fraction of axis items to return. Cannot be used with
n
.replace : boolean, optional
Sample with or without replacement. De