src.preprocessing.impute_dates
Impute missing dates by filling them with the most similar embedding.
Classes
-
class src.preprocessing.impute_dates.ImputeDates[source]
Impute missing dates.
Replaces NaN values in the date column with one from the closest document embedding.
-
custom_transform(data, **transform_args)[source]
Set the missing dates to the fill_date.
- Parameters:
-
- Return type:
DataFrame
- Returns:
The transformed data.