-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain.py
26 lines (19 loc) · 861 Bytes
/
Main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import pandas as pd
data = pd.read_excel(r'monthly_market_data - Copy.xlsx')
class CompanyInfo:
def __init__(self, tickerKey, name, month, marketcap, close):
self.tickerKey = tickerKey
self.name = name
self.month = month
self.rollingAverage = None
self.marketcap = marketcap
self.Close = close
companyInfoList = []
for i, companyInfoPandas in data.iterrows():
companyInfoList.append(CompanyInfo(tickerKey=companyInfoPandas["TickerKey"],
name=companyInfoPandas["TickerNamePooyaFA"],
month=companyInfoPandas["DayKeyFA"],
marketcap=companyInfoPandas["marketcap"],
close=companyInfoPandas["Close"],
))
pass