Skip to Content
Pythonデータサイエンスハンドブック ―Jupyter、NumPy、pandas、Matplotlib、scikit-learnを使ったデータ分析、機械学習
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を使ったデータ分析、機械学習
4.16
Seaborn
による可視化
315
こうした問題に対する回答が
Seaborn
http://seaborn.pydata.org
)です。
Seaborn
は適切な描画
スタイルとデフォルトの配色、一般的な統計プロットに対するシンプルで高水準の関数定義、そし
pandas
DataFrame
との機能統合を、
Matplotlib
上の
API
として提供します。
公平のために補足すると、
Matplotlib
チームはこうした問題への対処を行っているところです。
plt.style
機能(「4.13 Matplotlibのカスタマイズ:設定とスタイルシート」を参照)が追加され、
pandas
データへのシームレスな統合も進められています。
Matplotlib
2.0
リリースには、現状の
問題を改善する新しいデフォルトのスタイルシートが含まれます。しかし、ここまでに説明した理
由から、
Seaborn
は依然として有用なアドオンと言えます。
4.16.1
Seaborn
Matplotlib
単純なランダムウォークの例を、
Matplotlib
の従来書式と色を使って示します。いつものイン
ポートから始めます。
In[1]: import matplotlib.pyplot as plt
plt.style.use('classic')
%matplotlib inline
import numpy as np
import pandas as pd
ランダムウォークのデータを作ります。
In[2]: # Create some ...
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を使ったデータ分析、機械学習

Pythonデータサイエンスハンドブック 第2版 ―Jupyter、NumPy、pandas、Matplotlib、scikit-learnを使ったデータ分析、機械学習

Jake VanderPlas, 菊池 彰
初めてのGraphQL ―Webサービスを作って学ぶ新世代API

初めてのGraphQL ―Webサービスを作って学ぶ新世代API

Eve Porcello, Alex Banks, 尾崎 沙耶, あんどうやすし

Publisher Resources

ISBN: 9784873118413Other