Spaces:
Runtime error
Runtime error
Commit
·
88c217f
1
Parent(s):
7e21546
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,9 +4,10 @@ import pandas as pd
|
|
| 4 |
import plotly.express as px
|
| 5 |
|
| 6 |
uploaded_file = st.file_uploader("Choose a CSV file", accept_multiple_files=False)
|
| 7 |
-
series = st.text_input("Write the name of the variable you want to forecast")
|
| 8 |
-
|
| 9 |
if uploaded_file is not None:
|
| 10 |
# Can be used wherever a "file-like" object is accepted:
|
| 11 |
dataframe = pd.read_csv(uploaded_file)
|
| 12 |
st.write(dataframe)
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
import plotly.express as px
|
| 5 |
|
| 6 |
uploaded_file = st.file_uploader("Choose a CSV file", accept_multiple_files=False)
|
|
|
|
|
|
|
| 7 |
if uploaded_file is not None:
|
| 8 |
# Can be used wherever a "file-like" object is accepted:
|
| 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 |
+
fig = px.line(df, y=series, title=f'Forecasting {series}')
|
| 13 |
+
fig.show()
|