Skip to Content
파이썬을 활용한 금융 분석(2판) : 파이썬의 기초부터 금융공학, 머신러닝, 퀀트 분석, 매매 시스템 구현까지
book

파이썬을 활용한 금융 분석(2판) : 파이썬의 기초부터 금융공학, 머신러닝, 퀀트 분석, 매매 시스템 구현까지

by 이브 힐피시, 김도형
March 2022
Beginner to intermediate
796 pages
18h 14m
Korean
Hanbit Media, Inc.
Content preview from 파이썬을 활용한 금융 분석(2판) : 파이썬의 기초부터 금융공학, 머신러닝, 퀀트 분석, 매매 시스템 구현까지
252
3
부
금융 데이터 과학
7.3.1
기본 플롯
주피터 노트북에서 사용하려면 몇 가지 임포트를 하고 노트북 모드를 켜야 한다.
In [42]: import pandas as pd
In [43]: import cufflinks as cf
➊
In [44]: import plotly.offline as plyo
➋
In [45]: plyo.init_notebook_mode(connected=True)
➌
➊
Cufflinks
임포트
➋
plotly
의 오프라인 플롯 기능을 임포트
➌
노트북 모드 켜기
TIP
원격 렌더링과 로컬 렌더링
plotly
를 사용하면 플롯을
plotly
서버에서 렌더링할 수 있는 옵션이 있다. 하지만 대량의 데이터를 사용할
때는 일반적으로 노트북 모드가 훨씬 빠르다. 하지만 스트리밍 서비스와 같은 특정 기능은 서버와 통신해야 사
용할 수 있다.
이 예제도 난수를 사용한다. 난수는
DatetimeIndex
을 가진
DataFrame
객체(시계열 데이터)
에 저장된다.
In [46]: a = np.random.standard_normal((250, 5)).cumsum(axis=0)
➊
In [47]: index = pd.date_range('2019-1-1',
➋
freq='B',
➌
periods=len(a))
➍
In [48]: df = pd.DataFrame(100 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

파이썬 라이브러리를 활용한 데이터 분석(2판): 영화 평점, 이름 통계, 선거 데이터 등 실사례 사용

파이썬 라이브러리를 활용한 데이터 분석(2판): 영화 평점, 이름 통계, 선거 데이터 등 실사례 사용

김영근, 웨스 맥키니

Publisher Resources

ISBN: 9791162245170