Panel.sample(n=None, frac=None, replace=False, weights=None, random_state=None, axis=None) [source]
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 if frac = None. frac : float, optional Fraction of axis items to return. Cannot be used with n. replace : boolean, optional Sample with or without replacement. Default = False. weights : str or ndarray