Spaces:
Runtime error
Runtime error
Commit
·
47d147b
1
Parent(s):
449c36b
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,3 +1,20 @@
|
|
| 1 |
import streamlit as st
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
+
import numpy as np
|
| 3 |
+
import pandas as pd
|
| 4 |
+
import matplotlib.pyplot as plt
|
| 5 |
|
| 6 |
+
#!pip install yfinance
|
| 7 |
+
import yfinance as yf
|
| 8 |
+
yf.pdr_override()
|
| 9 |
+
from pandas_datareader import data as pdr
|
| 10 |
+
|
| 11 |
+
start = '2005-01-01'
|
| 12 |
+
end = '2022-12-31'
|
| 13 |
+
|
| 14 |
+
st.title("Stock Market Trend Predictor")
|
| 15 |
+
|
| 16 |
+
user_input = st.text_input("Enter the stock ticker", "TATAPOWER.NS")
|
| 17 |
+
df = pdr.get_data_yahoo(user_input, start, end)
|
| 18 |
+
|
| 19 |
+
st.subheader("Data from year 2005 to 2022:")
|
| 20 |
+
st.write(df.describe())
|