Skip to Content
실무로 통하는 ML 문제 해결 with 파이썬
book

실무로 통하는 ML 문제 해결 with 파이썬

by 카일 갤러틴, 크리스 알본, 박해선
April 2024
Beginner to intermediate
528 pages
12h 41m
Korean
Hanbit Media, Inc.
Content preview from 실무로 통하는 ML 문제 해결 with 파이썬
108
실무로 통하는
ML
문제 해결
with
파이썬
계 함수를 적용하여 머신러닝이나 특성 공학 과정에서 유용할 수 있는 데이터의 패턴을 볼 수
있습니다. 시각적인 그래프도 유용하지만 이런 구체적이고 설명적인
descriptive
통곗값이 데이터
를 더 잘 이해하는 데 종종 유용합니다.
참고
•판다스
agg
메서드 문서(
https
://
oreil
.
ly
/
5xing
)
3.17
열 원소 순회하기
과제
열의 모든 원소에 어떤 동작을 적용하고 싶습니다.
해결
판다스의 열을 파이썬의 시퀀스처럼 취급하고 파이썬의 일반적인 표현식으로 원소를 순
회할 수 있습니다.
# 라이브러리를 임포트합니다.
import pandas as pd
# 데이터 URL
url = 'https://bit.ly/3Tb15qr'
# 데이터를 적재합니다.
dataframe = pd.read_csv(url)
# 처음 두 이름을 대문자로 바꾸어 출력합니다.
for name in dataframe['Name'][0:2]:
print(name.upper())
ALLEN, MISS ELISABETH WALTON
ALLISON, MISS HELEN LORAINE
설명
반복문(종종
for
반복문이라고 부릅니다) 외에 리스트 컴프리헨션
list
comprehension
를 사용할
수 있습니다.
# 처음 두 이름을 대문자로 바꾸어 출력합니다. ...
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

실무로 통하는 인과추론 with 파이썬

실무로 통하는 인과추론 with 파이썬

마테우스 파쿠레

Publisher Resources

ISBN: 9791169212373