analytics
Browse files
app.py
CHANGED
|
@@ -10,14 +10,16 @@ https://hits.seeyoufarm.com/
|
|
| 10 |
'''
|
| 11 |
TIME SERIES ANALYTICS
|
| 12 |
'''
|
| 13 |
-
|
| 14 |
import pandas as pd
|
| 15 |
-
|
| 16 |
import plotly.express as px
|
| 17 |
|
| 18 |
def trend(t):
|
| 19 |
'''
|
| 20 |
-
|
|
|
|
|
|
|
| 21 |
|
| 22 |
for c in t.split(' '):
|
| 23 |
q=data.loc[:,('Close',c)]
|
|
@@ -33,6 +35,7 @@ def trend(t):
|
|
| 33 |
'''
|
| 34 |
d=pd.read_pickle("data.pkl")
|
| 35 |
'''
|
|
|
|
| 36 |
fig = px.line(df, x="day", y=countries)
|
| 37 |
fig.update_layout(
|
| 38 |
title="Outbreak in " + month,
|
|
@@ -229,7 +232,7 @@ Use Case:
|
|
| 229 |
|
| 230 |
""")
|
| 231 |
with gr.Tab("Trading Analyics"):
|
| 232 |
-
in_ts = gr.Textbox(placeholder="
|
| 233 |
label="Ticker",
|
| 234 |
info="Identify Industry Trend, (top right is grow trending)"
|
| 235 |
)
|
|
|
|
| 10 |
'''
|
| 11 |
TIME SERIES ANALYTICS
|
| 12 |
'''
|
| 13 |
+
|
| 14 |
import pandas as pd
|
| 15 |
+
|
| 16 |
import plotly.express as px
|
| 17 |
|
| 18 |
def trend(t):
|
| 19 |
'''
|
| 20 |
+
import yfinance as yf
|
| 21 |
+
from sklearn.preprocessing import StandardScaler
|
| 22 |
+
data = yf.download(t, period="3mo")
|
| 23 |
|
| 24 |
for c in t.split(' '):
|
| 25 |
q=data.loc[:,('Close',c)]
|
|
|
|
| 35 |
'''
|
| 36 |
d=pd.read_pickle("data.pkl")
|
| 37 |
'''
|
| 38 |
+
https://www.gradio.app/docs/plot
|
| 39 |
fig = px.line(df, x="day", y=countries)
|
| 40 |
fig.update_layout(
|
| 41 |
title="Outbreak in " + month,
|
|
|
|
| 232 |
|
| 233 |
""")
|
| 234 |
with gr.Tab("Trading Analyics"):
|
| 235 |
+
in_ts = gr.Textbox(placeholder="XLE XLV XLY XLK XLF XLP XLI XLRE XLU",
|
| 236 |
label="Ticker",
|
| 237 |
info="Identify Industry Trend, (top right is grow trending)"
|
| 238 |
)
|
data.pkl
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b70f00b9653d4031096886ecfb6f206070c48026f56ab24fb5f28e12b874d722
|
| 3 |
+
size 966
|