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

featuretools.load_features(features, profile_name=None)[source]

Loads the features from a filepath, S3 path, URL, an open file, or a JSON formatted string.

Parameters
  • features (str or FileObject) – The location of where features has

  • saved which this must include the name of the file (been) –

  • a JSON formatted (or) –

  • string

  • a readable file handle where the features have been saved. (or) –

  • profile_name (str, bool) – The AWS profile specified to write to S3. Will default to None and search for AWS credentials. Set to False to use an anonymous profile.

Returns

Feature definitions list.

Return type

features (list[FeatureBase])

Note

Features saved in one version of Featuretools or python are not guaranteed to work in another. After upgrading Featuretools or python, features may need to be generated again.

Example

filepath = os.path.join('/Home/features/', 'list.json')
ft.load_features(filepath)

f = open(filepath, 'r')
ft.load_features(f)

feature_str = f.read()
ft.load_features(feature_str)

See also

save_features()