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
Pythonデータサイエンスハンドブック ―Jupyter、NumPy、pandas、Matplotlib、scikit-learnを使ったデータ分析、機械学習
by
Jake VanderPlas
,
菊池 彰
May 2018
Intermediate to advanced
556 pages
13h 21m
Japanese
O'Reilly Japan, Inc.
Content preview from
Pythonデータサイエンスハンドブック ―Jupyter、NumPy、pandas、Matplotlib、scikit-learnを使ったデータ分析、機械学習
120
3
章
pandas
を使ったデータ操作
この節では、データの欠落に関する一般的な考慮事項について説明し、
pandas
がそれを表現す
る方法を解説し、欠落しているデータを
Python
で処理するために
pandas
が提供するツールを示し
ます。本書全体を通して、欠落しているデータを一般的に
null値
、
NaN
値
、または
NA値
と呼びま
す。
3.5.1
欠損値表現のトレードオフ
テーブルや
DataFrame
に欠落しているデータが存在することを示すために、数多くの手法が開発
されてきました。それらは一般的に
2
つの戦略、つまり欠損値を大域的に示す
マスク
を使用するか、
または欠落しているエントリを示す
特殊な値
を使うかに分類されます。
マスク方式では、マスクを完全に別のブール値配列で表現したり、または値が欠落していること
を示すために
1
ビットを割り当てる方法などが使われます。
特殊な値を使う方式では、−
9999
や特殊なビットパターンを使って整数としての値が存在して
い
ないことを示すデータ特有の規則を使用したり、
IEEE
浮動小数点仕様で特殊な値を示す
NaN
(
Not
a Number
:非数)を用いて浮動小数点としての値が存在していないことを示す一般的な規則を使用
することもあります。
こうしたアプローチのいずれも、トレードオフが存在します。マスク配列を別に用意するには配
列を追加するために追加の記憶域と演算が必要となります。特殊な値は、表現可能な値の範囲を減
らし、
CPU
および
GPU
演算で余分な(しばしば最適化されていない) ...
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
Pythonデータサイエンスハンドブック 第2版 ―Jupyter、NumPy、pandas、Matplotlib、scikit-learnを使ったデータ分析、機械学習
Jake VanderPlas, 菊池 彰
Pythonではじめる機械学習 ―scikit-learnで学ぶ特徴量エンジニアリングと機械学習の基礎
Andreas C. Muller, Sarah Guido, 中田 秀基
PythonによるAIプログラミング入門 ―ディープラーニングを始める前に身につけておくべき15の基礎技術
Prateek Joshi, 相川 愛三
初めてのGraphQL ―Webサービスを作って学ぶ新世代API
Eve Porcello, Alex Banks, 尾崎 沙耶, あんどうやすし
Publisher Resources
ISBN: 9784873118413
Other