gauravlochab commited on
Commit
4635a36
·
1 Parent(s): 890b4aa

feat: add debug print statements for combined agent data in time series graph

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -434,7 +434,7 @@ def create_combined_time_series_graph(df):
434
 
435
  # Sort the data by timestamp
436
  agent_data = agent_data.sort_values('timestamp')
437
-
438
  # Add the combined line for both APR and Performance
439
  fig.add_trace(
440
  go.Scatter(
@@ -450,6 +450,7 @@ def create_combined_time_series_graph(df):
450
 
451
  # Add scatter points for APR values
452
  apr_data = agent_data[agent_data['metric_type'] == 'APR']
 
453
  if not apr_data.empty:
454
  fig.add_trace(
455
  go.Scatter(
@@ -466,6 +467,7 @@ def create_combined_time_series_graph(df):
466
 
467
  # Add scatter points for Performance values
468
  perf_data = agent_data[agent_data['metric_type'] == 'Performance']
 
469
  if not perf_data.empty:
470
  fig.add_trace(
471
  go.Scatter(
 
434
 
435
  # Sort the data by timestamp
436
  agent_data = agent_data.sort_values('timestamp')
437
+ print("agent_data_combined",agent_data)
438
  # Add the combined line for both APR and Performance
439
  fig.add_trace(
440
  go.Scatter(
 
450
 
451
  # Add scatter points for APR values
452
  apr_data = agent_data[agent_data['metric_type'] == 'APR']
453
+ print("apr_data_combined",apr_data)
454
  if not apr_data.empty:
455
  fig.add_trace(
456
  go.Scatter(
 
467
 
468
  # Add scatter points for Performance values
469
  perf_data = agent_data[agent_data['metric_type'] == 'Performance']
470
+ print("perf_data_combined",perf_data)
471
  if not perf_data.empty:
472
  fig.add_trace(
473
  go.Scatter(