Spaces:
Runtime error
Runtime error
Commit
·
2d33a3d
1
Parent(s):
980239c
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,6 +9,7 @@ if uploaded_file is not None:
|
|
| 9 |
dataframe = pd.read_csv(uploaded_file)
|
| 10 |
st.write(dataframe)
|
| 11 |
series = st.text_input("Write the name of the variable you want to forecast")
|
|
|
|
| 12 |
if series is not None:
|
| 13 |
-
fig = px.line(dataframe, x=
|
| 14 |
fig.show()
|
|
|
|
| 9 |
dataframe = pd.read_csv(uploaded_file)
|
| 10 |
st.write(dataframe)
|
| 11 |
series = st.text_input("Write the name of the variable you want to forecast")
|
| 12 |
+
dataframe['time'] = dataframe.index
|
| 13 |
if series is not None:
|
| 14 |
+
fig = px.line(dataframe, x='time', y=series, title=f'Forecasting {series}')
|
| 15 |
fig.show()
|