filipeclduarte commited on
Commit
980239c
·
1 Parent(s): f336251

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -9,5 +9,6 @@ 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
- fig = px.line(dataframe, y=series, title=f'Forecasting {series}')
13
- 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
+ if series is not None:
13
+ fig = px.line(dataframe, x=dataframe.index,y=series, title=f'Forecasting {series}')
14
+ fig.show()