GuglielmoTor commited on
Commit
502a9b3
·
verified ·
1 Parent(s): adbb0e1

Update ui/analytics_plot_generator.py

Browse files
Files changed (1) hide show
  1. ui/analytics_plot_generator.py +1 -1
ui/analytics_plot_generator.py CHANGED
@@ -357,7 +357,7 @@ def generate_impressions_lineplot_component_data(df, post_details_map_ref):
357
  # If the df is empty, return an empty one to clear the plot while preserving the component type
358
  if plot_df.empty:
359
  logging.info("Returning an empty DataFrame to clear the line plot.")
360
- return pd.DataFrame(columns=['date', 'impressions', 'label'])
361
 
362
  logging.info(f"Generated LinePlot data with {len(plot_df)} points.")
363
 
 
357
  # If the df is empty, return an empty one to clear the plot while preserving the component type
358
  if plot_df.empty:
359
  logging.info("Returning an empty DataFrame to clear the line plot.")
360
+ return pd.DataFrame(columns=['date', 'impressions'])
361
 
362
  logging.info(f"Generated LinePlot data with {len(plot_df)} points.")
363