Spaces:
Sleeping
Sleeping
Commit
·
7023584
1
Parent(s):
31cc5a9
Update app.py
Browse files
app.py
CHANGED
@@ -1,25 +1,23 @@
|
|
1 |
import numpy as np
|
2 |
import pandas as pd
|
3 |
-
import matplotlib.pyplot as plt
|
4 |
-
import pandas_datareader as data
|
5 |
import yfinance as yf
|
|
|
|
|
6 |
import tensorflow as tf
|
7 |
-
|
8 |
from keras.models import load_model
|
9 |
import streamlit as st
|
10 |
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
st.title('Stock Future Predicter')
|
16 |
-
|
17 |
-
use_input = st.text_input('Enter stock Ticker', 'AAPL')##############
|
18 |
|
19 |
-
|
20 |
-
|
|
|
|
|
21 |
|
22 |
-
|
23 |
#describing data
|
24 |
st.subheader('Data From 2010-2023')
|
25 |
st.write(df.describe())
|
|
|
1 |
import numpy as np
|
2 |
import pandas as pd
|
3 |
+
import matplotlib.pyplot as plt
|
|
|
4 |
import yfinance as yf
|
5 |
+
yf.pdr_override()
|
6 |
+
from pandas_datareader import data as pdr
|
7 |
import tensorflow as tf
|
|
|
8 |
from keras.models import load_model
|
9 |
import streamlit as st
|
10 |
|
11 |
+
# Start and the End dates and the stock ticker
|
12 |
+
start = '2005-01-01'
|
13 |
+
end = '2022-12-31'
|
14 |
+
stock_ticker = 'TATAPOWER.NS'
|
|
|
|
|
|
|
15 |
|
16 |
+
st.title("Stock Market Trend Predictor")
|
17 |
+
use_input = st.text_input('Enter stock Ticker', stock_ticker)
|
18 |
+
if st.button('Analyze'):
|
19 |
+
df = pdr.get_data_yahoo(use_input, start)
|
20 |
|
|
|
21 |
#describing data
|
22 |
st.subheader('Data From 2010-2023')
|
23 |
st.write(df.describe())
|