Skip to Content
For Enterprise
For Government
For Higher Ed
For Individuals
For Marketing
For Enterprise
For Government
For Higher Ed
For Individuals
For Marketing
Explore Skills
Cloud Computing
Microsoft Azure
Amazon Web Services (AWS)
Google Cloud
Cloud Migration
Cloud Deployment
Cloud Platforms
Data Engineering
Data Warehouse
SQL
Apache Spark
Microsoft SQL Server
MySQL
Kafka
Data Lake
Streaming & Messaging
NoSQL Databases
Relational Databases
Data Science
Pandas
R
MATLAB
SAS
D3
Power BI
Tableau
Statistics
Exploratory Data Analysis
Data Visualization
AI & ML
Generative AI
Machine Learning
Artificial Intelligence (AI)
Deep Learning
Reinforcement Learning
Natural Language Processing
TensorFlow
Scikit-Learn
Hyperparameter Tuning
MLOps
Programming Languages
Java
JavaScript
Spring
Python
Go
C#
C++
C
Swift
Rust
Functional Programming
Software Architecture
Object-Oriented
Distributed Systems
Domain-Driven Design
Architectural Patterns
IT/Ops
Kubernetes
Docker
GitHub
Terraform
Continuous Delivery
Continuous Integration
Database Administration
Computer Networking
Operating Systems
IT Certifications
Security
Network Security
Application Security
Incident Response
Zero Trust Model
Disaster Recovery
Penetration Testing / Ethical Hacking
Governance
Malware
Security Architecture
Security Engineering
Security Certifications
Design
Web Design
Graphic Design
Interaction Design
Film & Video
User Experience (UX)
Design Process
Design Tools
Business
Agile
Project Management
Product Management
Marketing
Human Resources
Finance
Team Management
Business Strategy
Digital Transformation
Organizational Leadership
Soft Skills
Professional Communication
Emotional Intelligence
Presentation Skills
Innovation
Critical Thinking
Public Speaking
Collaboration
Personal Productivity
Confidence / Motivation
Features
All features
Verifiable skills
AI Academy
Courses
Certifications
Interactive learning
Live events
Superstreams
Answers
Insights reporting
Radar Blog
Buy Courses
Plans
Sign In
Try Now
O'Reilly Platform
book
파이썬 라이브러리를 활용한 데이터 분석(2판): 영화 평점, 이름 통계, 선거 데이터 등 실사례 사용
by
김영근
,
웨스 맥키니
June 2019
Beginner to intermediate
664 pages
18h 26m
Korean
Hanbit Media, Inc.
Content preview from
파이썬 라이브러리를 활용한 데이터 분석(2판): 영화 평점, 이름 통계, 선거 데이터 등 실사례 사용
97
3
장
내장 자료구조, 함수, 파일
슬라이스에 다른 순차 자료형을 대입하는 것도 가능하다.
In
[
75
]:
seq
[
3
:
4
]
=
[
6
,
3
]
In
[
76
]:
seq
Out
[
76
]:
[
7
,
2
,
3
,
6
,
3
,
5
,
6
,
0
,
1
]
색인의 시작
(
start
)
위치에 있는 값은 포함되지만 끝
(
stop
)
위치에 있는 값은 포함되지 않는
다. 따라서 슬라이싱 결과의 개수는
stop
-
start
다.
색인의 시작
(
start
)
값이나 끝
(
stop
)
값은 생략할 수 있는데, 이 경우 생략된 값은 각각 순차
자료형의 처음 혹은 마지막 값이 된다.
In
[
77
]:
seq
[:
5
]
Out
[
77
]:
[
7
,
2
,
3
,
6
,
3
]
In
[
78
]:
seq
[
3
:]
Out
[
78
]:
[
6
,
3
,
5
,
6
,
0
,
1
]
음수 색인은 순차 자료형의 끝에서부터의 위치를 나타낸다.
In
[
79
]:
seq
[
-
4
:]
Out
[
79
]:
[
5
,
6
,
0
,
1
]
In
[
80
]:
seq
[
-
6
:
-
2
]
Out
[
80
]:
[
6
,
3
,
5
,
6
]
R
이나 매트랩 사용자라면 슬라이싱 문법에 익숙해지는 데 시간이 걸릴 수 있다. [그림
3
-
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.
Start your free trial
You might also like
파이썬 라이브러리를 활용한 머신러닝(번역개정판): 사이킷런 핵심 개발자가 쓴 머신러닝과 데이터 과학 실무서
박해선, 안드레아스 뮐러, 세라 가이도
엑셀, R, 파이썬으로 시작하는 데이터 분석 : 데이터 분석의 기본 개념과 3가지 핵심 도구 사용법
조지 마운트
데이터 과학을 위한 통계: 데이터 분석에서 머신러닝까지 50가지 핵심 개념
이준용, 피터 브루스, 앤드루 브루스
훌륭한 프로그래머 되는 법: 프로젝트와 팀을 성공으로 이끄는 선배 개발자의 노하우
최원재, 강전희, 안재덕, 남윤화, 피트 구들리프
Publisher Resources
ISBN: 9791162241905