MLBazaar / MLPrimitives

Primitives for machine learning and data science.
https://mlbazaar.github.io/MLPrimitives
MIT License
69 stars 38 forks source link

Rename the time_index column to time #252

Closed pvk-developer closed 3 years ago

pvk-developer commented 3 years ago

From featuretools v0.15 onwards:

Calls to featuretools.dfs or featuretools.calculate_feature_matrix that use a cutoff time dataframe, but do not label the time column with either the target entity time index variable name or as time, will now result in an AttributeError.

In order to work around this and continue to support cutoff time indexes called differently, this PR adds a renaming step after building the cutoff dataframe to ensure that the time index is called time when the dataframe is passed to dfs and calculate_feature_matrix.