Spaces:
Sleeping
Sleeping
Update ui/analytics_plot_generator.py
Browse files
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'
|
| 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 |
|