DataFrameSpace๏ƒ

class emflow.spaces.dataframe.DataFrameSpace(space_dict)[source]๏ƒ

Bases: Space

sample(n_rows=None, index=None)[source]๏ƒ

Generate a sample from the space.

Parameters:
  • n_rows โ€“ Number of rows to generate for the DataFrame.

  • index โ€“ An optional pandas Index or MultiIndex to use for the DataFrame.

Returns:

A pandas DataFrame with sampled values.

contains(x)[source]๏ƒ

Check if a given dataframe x is contained within the space.

Parameters:

x โ€“ A pandas DataFrame.

Returns:

True if x is contained in the space, False otherwise.