Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -44,9 +44,12 @@ 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 |
-
st.write(
|
| 48 |
-
st.write(type(
|
| 49 |
-
st.write(type(
|
|
|
|
|
|
|
|
|
|
| 50 |
|
| 51 |
m = Prophet()
|
| 52 |
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_train.head()) # Check the first few rows of the DataFrame
|
| 48 |
+
st.write(type(df_train)) # Confirm that `df` is a DataFrame
|
| 49 |
+
st.write(type(df_train['y'])) # Check the type of `df['y']`
|
| 50 |
+
st.write(df_train['y'].dtype) # Check the data type of `y`
|
| 51 |
+
st.write(df_train['y'].isnull().sum()) # Check for null values
|
| 52 |
+
st.write(df_train['y'].unique())
|
| 53 |
|
| 54 |
m = Prophet()
|
| 55 |
m.fit(df_train)
|