Skip to Content
밑바닥부터 시작하는 데이터 과학 데이터 분석을 위한 파이썬 프로그래밍과 수학·통계 기초
book

밑바닥부터 시작하는 데이터 과학 데이터 분석을 위한 파이썬 프로그래밍과 수학·통계 기초

by Joel Grus, Hangyeol Kim, Seongju Ha, Eunjung Park
May 2022
Beginner to intermediate
448 pages
13h 7m
Korean
Insight
Content preview from 밑바닥부터 시작하는 데이터 과학 데이터 분석을 위한 파이썬 프로그래밍과 수학·통계 기초
from Scratch
45
󽴜󽴔󼖏󻱔󽴔󻪃󺙇󼘛󻱃󻘧
def ugly
_
function(value: int,
operation: Union[str, int, float, bool]) -> int:
...
앞의 함수에서
operation
인자는
str
,
int
,
oat
,
bool
객체를 받을 수 있다.
아마 이 함수는 굉장히 복잡하게 구성되어 있을 가능성이 크다. 하지만 타입
이 명시되어 있는 경우, 훨씬 명확하게 코드를 파악할 수 있을 것이다. 그리
고 자연스럽게 코드 또한 최대한 이해하기 쉽게 작성될 것이다.
· 타입을 명시하면 코드를 작성하는 에디터(
editor
)의 자동 완성 기능(그림
2
-
1
)을 활용할 수 있으며, 타입 에러 또한 사전에 감지할 수 있다.
그림 2-1
󽴔󽴔󻫗󻞫󽴜󽴔󺞳󺹇󽴔󻪟󺧣󼗿󺢓󽴔󻌓󻞆󼨯󽴔󺅒󻱃󺞳󽴜
종종 큰 규모의 프로젝트에서나 타입 명시가 도움이 된다고 주장하는 사람들이
있다. 하지만 타입 명시는 그렇게 시간이 많이 걸리는 일이 아니며 에디터의 유
용한 기능들을 사용할 수 있게 해준다. 오히려 작은 규모의 프로젝트에서도 코
드를 더 빠르게 작성할 수 있게 해준다.
이러한 이유로 이 책의 모든 예시에는 타입이 명시되어 있다. 지금 당장은 불
필요하다고 생각할 수도 있겠지만, 책을 다 읽었을 때쯤에는 생각이 바뀌었을
것이다.
2.26.1 ...
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

안드로이드 멀티스레딩: 비동기 메커니즘으로 날렵하고 안정적인 앱 만들기

안드로이드 멀티스레딩: 비동기 메커니즘으로 날렵하고 안정적인 앱 만들기

한대희, 안데르스 예란손

Publisher Resources

ISBN: 9788966262571