
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
'TSLA' 데이터에 포함된
bussiness = company.info['longBusinessSummary']
marketCap= company.info['marketCap']
currentPrice= company.info['currentPrice']
targetPrice= company.info['targetMeanPrice']
per = company.info['forwardPE']
eps = company.info['forwardEps']
pbr = company.info['priceToBook'] 에서 사용한
longBusinessSummary' / marketCap / targetMeanPrice / priceToBook 등을 사용하지 않고
doc에는
'bussiness':bussiness,
'marketCap' : marketCap,
'currentPrice' : currentPrice,
'targetPrice' : targetPrice 와 같이 항목을 적는 이유가 무엇인가요?

작성한 코드 및 에러 메세지
def add_company(code):
company = yf.Ticker(code)
name = company.info['shortName']
industry = company.info['industry']
bussiness = company.info['longBusinessSummary']
marketCap= company.info['marketCap']
currentPrice= company.info['currentPrice']
targetPrice= company.info['targetMeanPrice']
per = company.info['forwardPE']
eps = company.info['forwardEps']
pbr = company.info['priceToBook']
rev2021 = company.earnings.iloc[-1,0]
rev2020 = company.earnings.iloc[-2,0]
rev2019 = company.earnings.iloc[-3,0]
ear2021 = company.earnings.iloc[-1,1]
ear2020 = company.earnings.iloc[-2,1]
ear2019 = company.earnings.iloc[-3,1]
doc = {
'code':code,
'name':name,
'industry':industry,
'bussiness':bussiness,
'marketCap':marketCap/1000,
'currentPrice':currentPrice,
'targetPrice':targetPrice,
'per':per,
'eps':eps,
'pbr':pbr,
'rev2021':rev2021/1000,
'rev2020':rev2020/1000,
'rev2019':rev2019/1000,
'ear2021':ear2021/1000,
'ear2020':ear2020/1000,
'ear2019':ear2019/1000,
}
return doc
