featuretools.EntitySet.add_relationship¶
- EntitySet.add_relationship(parent_dataframe_name=None, parent_column_name=None, child_dataframe_name=None, child_column_name=None, relationship=None)[source]¶
Add a new relationship between dataframes in the entityset. Relationships can be specified by passing dataframe and columns names or by passing a
Relationship
object.- Parameters
parent_dataframe_name (str) – Name of the parent dataframe in the EntitySet. Must be specified if relationship is not.
parent_column_name (str) – Name of the parent column. Must be specified if relationship is not.
child_dataframe_name (str) – Name of the child dataframe in the EntitySet. Must be specified if relationship is not.
child_column_name (str) – Name of the child column. Must be specified if relationship is not.
relationship (Relationship) – Instance of new relationship to be added. Must be specified if dataframe and column names are not supplied.