Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creon 클래스에서 csv파일로 저장방법 문의 드립니다. #133

Open
masimaro123 opened this issue Jan 13, 2022 · 2 comments
Open
Labels
question Further information is requested v2

Comments

@masimaro123
Copy link

안녕하세요?
6장 주식데이터 획득 편에서 크레온으로 차트데이터를 획득하는 방법을 설명해 주셨는데요,
Creon 클래스 사용법에서 return받은 데이터를 프린트 하는 것으로 마무리가 되었있더라구요.
학습기에서 사용할 수 있도록 csv파일로 저장하는 방법을 알려주시면 감사하겠습니다.

@quantylab
Copy link
Owner

다음처럼 pandas의 to_csv() 메소드를 사용하면 되겠습니다.

df = creon.creon_7400_주식차트조회('035420', 20150101, 20171231)
df.to_csv('035420_20150101_20171231.csv')

ref. https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.to_csv.html

@quantylab quantylab added question Further information is requested v2 labels Jan 17, 2022
@masimaro123
Copy link
Author

감사합니다!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested v2
Projects
None yet
Development

No branches or pull requests

2 participants