swat.cas.table.CASTable.sample

CASTable.sample(self, n=None, frac=None, replace=False, weights=None, random_state=None, axis=None, stratify_by=None, **kwargs)

Returns a random sample of the table rows

Parameters
nint, optional

The number of samples to return. The default is 1 if frac=None.

fracfloat, optional

The percentage of rows to return.

replacebool, optional

Not supported.

weightsstr or ndarray-like, optional

Not supported.

random_stateint, optional

Seed for the random number generator.

axisint or string, optional

Not supported.

stratify_bystring, optional

The variable to stratify by.

Returns
CASTable