Spaces:
Sleeping
Sleeping
sankhyikii
commited on
Commit
•
4e1670a
1
Parent(s):
e9502eb
Adj Close to Low
Browse files
main.py
CHANGED
@@ -4,7 +4,6 @@ import yfinance as yf
|
|
4 |
import streamlit as st
|
5 |
import plotly.graph_objects as go
|
6 |
import time
|
7 |
-
import sys
|
8 |
import datetime
|
9 |
|
10 |
with open(r"style/style.css") as css:
|
@@ -77,13 +76,11 @@ com_sel = [company_dict[i] for i in com_sel_name]
|
|
77 |
num_tick = len(com_sel)
|
78 |
|
79 |
if num_tick > 1:
|
80 |
-
|
81 |
com_data = pd.DataFrame()
|
82 |
for cname, cdate in zip(com_sel, com_sel_date):
|
83 |
-
stock_data_temp = yf.download(cname, start=cdate, end=pd.Timestamp.now().strftime('%Y-%m-%d'))['
|
84 |
stock_data_temp.name = cname
|
85 |
com_data = pd.merge(com_data, stock_data_temp, how="outer", right_index=True, left_index=True)
|
86 |
-
|
87 |
for i in com_data.columns:
|
88 |
com_data.dropna(axis=1, how='all', inplace=True)
|
89 |
# com_data.dropna(inplace=True)
|
|
|
4 |
import streamlit as st
|
5 |
import plotly.graph_objects as go
|
6 |
import time
|
|
|
7 |
import datetime
|
8 |
|
9 |
with open(r"style/style.css") as css:
|
|
|
76 |
num_tick = len(com_sel)
|
77 |
|
78 |
if num_tick > 1:
|
|
|
79 |
com_data = pd.DataFrame()
|
80 |
for cname, cdate in zip(com_sel, com_sel_date):
|
81 |
+
stock_data_temp = yf.download(cname, start=cdate, end=pd.Timestamp.now().strftime('%Y-%m-%d'))['Low']
|
82 |
stock_data_temp.name = cname
|
83 |
com_data = pd.merge(com_data, stock_data_temp, how="outer", right_index=True, left_index=True)
|
|
|
84 |
for i in com_data.columns:
|
85 |
com_data.dropna(axis=1, how='all', inplace=True)
|
86 |
# com_data.dropna(inplace=True)
|