NOTICE

The upcoming release of Featuretools 1.0.0 contains several breaking changes. Users are encouraged to test this version prior to release by installing from GitHub:

pip install https://github.com/alteryx/featuretools/archive/woodwork-integration.zip

For details on migrating to the new version, refer to Transitioning to Featuretools Version 1.0. Please report any issues in the Featuretools GitHub repo or by messaging in Alteryx Open Source Slack.


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.