merlin.dag.Graph#
- class merlin.dag.Graph(output_node: Node)[source]#
Bases:
object
Represents an DAG composed of Nodes, each of which contains an operator that transforms dataframes or dataframe-like data
Methods
__init__
(output_node)Removes calculated statistics from each node in the graph
construct_schema
(root_schema[, preserve_dtypes])Given the schema of a dataset to transform, determine the output schema of the graph
get_nodes_by_op_type
(nodes, op_type)remove_inputs
(to_remove)Removes columns from a Graph
subgraph
(name)Attributes
- property input_dtypes#
- property output_dtypes#
- property column_mapping#
- construct_schema(root_schema: Schema, preserve_dtypes=False) Graph [source]#
Given the schema of a dataset to transform, determine the output schema of the graph
- property input_schema#
- property leaf_nodes#
- property output_schema#