Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -45,11 +45,10 @@ plot_raw_data()
|
|
| 45 |
df_train = data[['Date', 'Close']]
|
| 46 |
df_train = df_train.rename(columns={"Date": "ds", "Close": "y"})
|
| 47 |
st.write(df_train.head()) # Check the first few rows of the DataFrame
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
st.write(df_train
|
| 51 |
-
|
| 52 |
-
st.write(df_train['y'].unique())
|
| 53 |
|
| 54 |
m = Prophet()
|
| 55 |
m.fit(df_train)
|
|
|
|
| 45 |
df_train = data[['Date', 'Close']]
|
| 46 |
df_train = df_train.rename(columns={"Date": "ds", "Close": "y"})
|
| 47 |
st.write(df_train.head()) # Check the first few rows of the DataFrame
|
| 48 |
+
df_train = df_train.iloc[1:]
|
| 49 |
+
df_train = df_train.reset_index(drop = True)
|
| 50 |
+
st.write(df_train.head()) # Check the first few rows of the DataFrame
|
| 51 |
+
|
|
|
|
| 52 |
|
| 53 |
m = Prophet()
|
| 54 |
m.fit(df_train)
|