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

featuretools.graph_feature(feature, to_file=None, description=False, **kwargs)[source]

Generates a feature lineage graph for the given feature

Parameters
  • feature (FeatureBase) – Feature to generate lineage graph for

  • to_file (str, optional) – Path to where the plot should be saved. If set to None (as by default), the plot will not be saved.

  • description (bool or str, optional) – The feature description to use as a caption for the graph. If False, no description is added. Set to True to use an auto-generated description. Defaults to False.

  • kwargs (keywords) – Additional keyword arguments to pass as keyword arguments to the ft.describe_feature function.

Returns

Graph object that can directly be displayed in Jupyter notebooks.

Return type

graphviz.Digraph