Nuzz23 commited on
Commit
88c1f62
·
1 Parent(s): 436e1a2
Files changed (1) hide show
  1. utils.py +1 -1
utils.py CHANGED
@@ -307,7 +307,7 @@ def plotResults(df, target_cols:list[str]=None)->plt.Figure|None:
307
  plt.Figure|None: The figure object containing the plot of the time series data with detected anomalies, or None if the data is not suitable for plotting.
308
  """
309
 
310
- if df.shape[1] - 2 < MAX_NUMBER_OF_PLOTTABLE_SERIES and df.shape[0] < MAX_NUMBER_OF_POINTS_PLOTTABLE: # -2 to exclude timestamp and anomaly_label columns
311
  fig, ax = plt.subplots(1,1,figsize=(15, 5))
312
  df['temp_timestamp_for_print'] = np.arange(len(df)) # posizione numerica dei punti
313
 
 
307
  plt.Figure|None: The figure object containing the plot of the time series data with detected anomalies, or None if the data is not suitable for plotting.
308
  """
309
 
310
+ if df.shape[1] - 2 <= MAX_NUMBER_OF_PLOTTABLE_SERIES and df.shape[0] < MAX_NUMBER_OF_POINTS_PLOTTABLE: # -2 to exclude timestamp and anomaly_label columns
311
  fig, ax = plt.subplots(1,1,figsize=(15, 5))
312
  df['temp_timestamp_for_print'] = np.arange(len(df)) # posizione numerica dei punti
313