Relational data
class RelationalData
RelationalData.__init__
Relational data structure.
Arguments:
data
- A dictionary with table names as keys andpandas.DataFrame
’s as values.schema
- ASchema
object.
RelationalData.split
Split the input data according to the given ratios for each root table.
Arguments:
ratio
- Split ratio.reset_index
- Whether to reset the index of the resulting dataframes.rng
- Random state. If an int, it will be used as seed, if None the seed will be chosen randomly.
Returns:
Tuple with the two splits.