Fill communication features with appropriate values.

rapids
junos 2021-08-21 18:28:22 +02:00
parent aed73bb7ed
commit f73f86486a
1 changed files with 5 additions and 0 deletions

View File

@ -75,6 +75,11 @@ class SensorFeatures:
self.df_features_all = safe_outer_merge_on_index( self.df_features_all = safe_outer_merge_on_index(
self.df_features_all, self.df_calls_sms self.df_features_all, self.df_calls_sms
) )
self.df_features_all.fillna(
value=communication.FILL_NA_CALLS_SMS_ALL,
inplace=True,
downcast="infer",
)
def get_features(self, data_type, feature_names) -> pd.DataFrame: def get_features(self, data_type, feature_names) -> pd.DataFrame:
if data_type == "proximity": if data_type == "proximity":