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
121
󽴜󽴔󺇋󽴔
원고를 작성하는 데 세 달이 걸렸고, 구상하는 데
3
분이 걸렸다.
하지만 데이터를 수집하는 데는 평생이 걸렸다.
-
F
. 스캇 피츠제럴드 (
F
.
Scott
Fitzgerald
)
데이터 과학자가 되기 위해서는 데이터가 필요하다. 그러다 보니 부끄럽게도 우
리는 데이터 과학자로서 보내는 시간 중 상당 부분을 데이터를 수집하고, 전처
리하고, 변환하는 데 보내게 된다. 불가피한 상황에서는 데이터를 직접 타이핑
할 수도 있겠지만(아랫것(
minion
)들이 있다면 그들을 시켜도 된다), 그건 우리
의 시간을 효과적으로 사용하는 방법이 아니다. 이 장에서는 다양한 방식을 통
해 데이터를 수집하고, 올바른 포맷으로 파이썬에 전달하는 방법을 배워 보자.
9.1
stdin과 stdout
만약 커맨드라인으로 파이썬 코드를 실행시킨다면
sys.stdin
sys.stdout
으로
데이터를 파이핑(
piping
)할 수 있다. 예를 들어 문서를 읽고 주어진 정규표현식
(
regex
)과 매칭되는 줄을 출력해 주는 코드가 있다고 해보자.
# egrep.py
import sys, re
# sys.argv
커맨드라인에서
사용할
있는
모든
인자에
대한
리스트다
.
# sys.argv[0]
프로그램의
이름을
나타낸다
.
# sys.argv[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