Skip to content
Snippets Groups Projects

Resolve "Warnings while executing end-to-end tests"

Merged Reinhard Biegel requested to merge 191-warnings-while-executing-end-to-end-tests into develop
5 files
+ 33
9
Compare changes
  • Side-by-side
  • Inline
Files
5
@@ -58,14 +58,16 @@ def join_events_and_fill(df: pd.DataFrame, events: pd.DataFrame, queried_events)
for event in queried_events:
event_column = f'Event_{event_parser.normalize(event)}'
if column == event_column:
df[column] = pd.to_numeric(df[column], downcast="float", errors='ignore')
df[column] = df.groupby('AgentId')[
column].fillna(method='ffill')
# only for the event column itself, not its keys
df[column] = df.groupby('AgentId')[column].fillna(False)
df[column] = df.groupby('AgentId')[column].fillna(0.0)
# fill default event columns
for column in df.columns:
if column in ['IsTriggering', 'IsAffected', 'Source', 'Name']:
df[column] = pd.to_numeric(df[column], downcast="float", errors='ignore')
df[column] = df.groupby('AgentId')[column].fillna(method='ffill')
return df
Loading