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

pip install featuretools==1.0.0rc1

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.computational_backends.replace_inf_values(feature_matrix, replacement_value=nan, columns=None)[source]

Replace all np.inf values in a feature matrix with the specified replacement value.

  • feature_matrix (DataFrame) – DataFrame whose columns are feature names and rows are instances

  • replacement_value (int, float, str, optional) – Value with which np.inf values will be replaced

  • columns (list[str], optional) – A list specifying which columns should have values replaced. If None, values will be replaced for all columns.