diff --git a/plugins/pdr_deterministic_plugin/ufm_sim_web_service/telemetry_collector.py b/plugins/pdr_deterministic_plugin/ufm_sim_web_service/telemetry_collector.py index 11fcfce2..d7f2dc2c 100644 --- a/plugins/pdr_deterministic_plugin/ufm_sim_web_service/telemetry_collector.py +++ b/plugins/pdr_deterministic_plugin/ufm_sim_web_service/telemetry_collector.py @@ -58,9 +58,9 @@ def _get_delta(self, first_df: pd.DataFrame, second_df:pd.DataFrame): delta_dataframe = pd.DataFrame() for _,col in enumerate(second_df.columns): col_x = col + "_x" - if col not in self.KEY\ - and not merged_df[col].apply(lambda x: isinstance(x, str)).any()\ - and not merged_df[col_x].apply(lambda x: isinstance(x, str)).any(): + if col not in self.KEY \ + and merged_df[col].dtype != 'object' \ + and merged_df[col_x].dtype != 'object': try: delta_dataframe[col] = merged_df[col] - merged_df[col_x] except TypeError: