Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -44,6 +44,9 @@ plot_raw_data()
|
|
44 |
# Predict forecast with Prophet.
|
45 |
df_train = data[['Date', 'Close']]
|
46 |
df_train = df_train.rename(columns={"Date": "ds", "Close": "y"})
|
|
|
|
|
|
|
47 |
|
48 |
m = Prophet()
|
49 |
m.fit(df_train)
|
|
|
44 |
# Predict forecast with Prophet.
|
45 |
df_train = data[['Date', 'Close']]
|
46 |
df_train = df_train.rename(columns={"Date": "ds", "Close": "y"})
|
47 |
+
st.write(df.head()) # Check the first few rows of the DataFrame
|
48 |
+
st.write(type(df)) # Confirm that `df` is a DataFrame
|
49 |
+
st.write(type(df['y'])) # Check the type of `df['y']`
|
50 |
|
51 |
m = Prophet()
|
52 |
m.fit(df_train)
|