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.Relationship

class featuretools.Relationship(entityset, parent_dataframe_name, parent_column_name, child_dataframe_name, child_column_name)[source]

Class to represent a relationship between dataframes

See also

EntitySet

__init__(entityset, parent_dataframe_name, parent_column_name, child_dataframe_name, child_column_name)[source]

Create a relationship

Parameters
  • entityset (EntitySet) – EntitySet to which the relationship belongs

  • parent_dataframe_name (str) – Name of the parent dataframe in the EntitySet

  • parent_column_name (str) – Name of the parent column

  • child_dataframe_name (str) – Name of the child dataframe in the EntitySet

  • child_column_name (str) – Name of the child column

Methods

__init__(entityset, parent_dataframe_name, …)

Create a relationship

from_dictionary(arguments, es)

to_dictionary()

Attributes

child_column

Column in child dataframe

child_dataframe

Child dataframe object

child_name

The name of the child, relative to the parent.

parent_column

Column in parent dataframe

parent_dataframe

Parent dataframe object

parent_name

The name of the parent, relative to the child.