featuretools.computational_backends.replace_inf_values

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.

Parameters
  • 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.

Returns

feature_matrix