
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
결과물을 출력할 때 ... 접혀 보이는 부분을 제거하고 전체 data를 펼쳐 보이게 하는 방법이 있을까요?
보고Hello Dave, It is already the 3rd week
rcept_no corp_cls corp_code ... fyer_salary_totamt jan_salary_am nmpr
0 20220321001331 Y 00258801 ... 2,740,000,000 249,000,000 11
[1 rows x 9 columns]
Process finished with exit code 0 계신 화면 전체를 캡처해 주시면, 튜터님들이 빠르게 상황을 이해할 수 있어요.
작성한 코드 및 에러 메세지
오print('Hello Dave, It is already the 3rd week')
#사전 dart-fss 설치 필요: pip install dart-fss
#dart-fss 라이브러리 >> DART-FSS-read the Docs 참조
import dart_fss as dart_fss
import pandas as pd
api_key = '8278d1c0e43b1a520fbdc53a0fd9d9133e838924'
dart_fss.set_api_key(api_key=api_key)
# corp_list = dart_fss.get_corp_list()
# corp_list.corps
all=dart_fss.api.filings.get_corp_code()
df=pd.DataFrame(all)
df_listed = df[df['stock_code'].notnull()]
df_non_listed = df[df['stock_code'].isnull()]
df_listed.to_excel('상장종목.xlsx')
df_non_listed.to_excel('비상장종목.xlsx')
# print(df_listed.head())
corp_code=df_listed[df_listed['corp_name']=='카카오'].iloc[0,0]
# print(dart_fss.api.filings.get_corp_info(corp_code))
data=dart_fss.api.info.unrst_exctv_mendng_sttus(corp_code,'2021','11011')
print(pd.DataFrame(data['list']))
류 발생 시, 작성한 코드 전체와 에러 메시지를 첨부해 주세요.
Tip 1) </> 아이콘을 눌러 코드박스를 만들어 보세요.
Tip 2) Ctrl+A(맥의 경우 Command+A) 단축키로 코드를 한 번에 선택할 수 있어요!
