Spaces:
Running
Running
commited
Browse files
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 |
|