safiaa02 commited on
Commit
a26cc1f
·
verified ·
1 Parent(s): efc6743

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -26,7 +26,8 @@ df = generate_data()
26
 
27
  def train_prophet(df):
28
  df["Timestamp"] = pd.to_datetime(df["Timestamp"])
29
- df_prophet = df.groupby("Timestamp").mean().reset_index()
 
30
  df_prophet.columns = ["ds", "y"]
31
 
32
  model = Prophet()
 
26
 
27
  def train_prophet(df):
28
  df["Timestamp"] = pd.to_datetime(df["Timestamp"])
29
+ df_numeric = df[["Timestamp", "Bandwidth_Usage"]] # Select only numeric columns
30
+ df_prophet = df_numeric.groupby("Timestamp").mean().reset_index()
31
  df_prophet.columns = ["ds", "y"]
32
 
33
  model = Prophet()