meerkat.shuffle¶

shuffle(data: Union[meerkat.dataframe.DataFrame, meerkat.columns.abstract.Column], seed=None) Union[meerkat.dataframe.DataFrame, meerkat.columns.abstract.Column][source]¶

Shuffle the rows of a DataFrame or Column.

Shuffling is done out-of-place and with numpy.

Parameters
  • data (Union[DataFrame, Column]) – DataFrame or Column to shuffle.

  • seed (int) – Seed to use for shuffling.

Returns

Shuffled DataFrame or Column.

Return type

Union[DataFrame, Column]