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

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

by 김영근, 웨스 맥키니
June 2019
Beginner to intermediate
664 pages
18h 26m
Korean
Hanbit Media, Inc.
Content preview from 파이썬 라이브러리를 활용한 데이터 분석(2판): 영화 평점, 이름 통계, 선거 데이터 등 실사례 사용
556
파이썬 라이브러리를 활용한 데이터 분석(2판)
pieces
=
[]
for year
,
group in names
.
groupby
(['
year
',
'
sex
']):
pieces
.
append
(
group
.
sort
_
values
(
by
=
'
births
',
ascending
=
False
)[:
1000
])
top1000
=
pd
.
concat
(
pieces
,
ignore
_
index
=
True
)
이제 데이터셋의 크기가 조금 줄었다.
In
[
108
]:
top1000
Out
[
108
]:
name sex births year prop
0 Mary F 7065 1880 0
.
077643
1 Anna F 2604 1880 0
.
028618
2 Emma F 2003 1880 0
.
022013
3 Elizabeth F 1939 1880 0
.
021309
4 Minnie F 1746 1880 0
.
019188
...
...
..
...
...
...
261872 Camilo M 194 2010 0
.
000102
261873 Destin M 194 2010 0
.
000102
261874 Jaquan M 194 2010 0
.
000102
261875 Jaydan M 194 2010 0
.
000102
261876 Maxton M 193 2010 0
.
000102
[
261877 rows x 5 columns
]
이렇게 추출한 상위
1
,
000
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.
Start your free trial

You might also like

파이썬 라이브러리를 활용한 머신러닝(번역개정판): 사이킷런 핵심 개발자가 쓴 머신러닝과 데이터 과학 실무서

파이썬 라이브러리를 활용한 머신러닝(번역개정판): 사이킷런 핵심 개발자가 쓴 머신러닝과 데이터 과학 실무서

박해선, 안드레아스 뮐러, 세라 가이도

Publisher Resources

ISBN: 9791162241905