Skip to Content
Python Polars ―高速なデータ処理を実現する次世代ライブラリ
book

Python Polars ―高速なデータ処理を実現する次世代ライブラリ

by Jeroen Janssens, Thijs Nieuwdorp, 中田 秀基
December 2025
Intermediate to advanced
468 pages
7h 58m
Japanese
O'Reilly Japan, Inc.
Content preview from Python Polars ―高速なデータ処理を実現する次世代ライブラリ

16章データの可視化

これまでの章で、生データを洗練されたDataFrameに変換するために必要なツールをすべて説明した。しかし、そのようなDataFrameから洞察を得るにはどうすればよいのだろうか?

1つの方法はデータの可視化だ。Pythonにはそのためのパッケージが数多く用意されている。低レベルのプロット用のMatplotlib、素早い可視化のためのhvPlot、インタラクティブなグラフのためのBokeh、Pythonのグラフィックスの文法を活用するplotnine、Polarsの組み込みプロット機能を使うためのAltairなどがある。図16-1にPythonの複雑なデータ可視化パッケージのランドスケープを概観する。

選択肢が多いのは良いことだが悪いことでもある。用件に合致したパッケージが存在する可能性は高いが、適切なパッケージを選ぶのは難しいからだ。さらに、それぞれのパッケージにはそれぞれの機能、前提条件、落とし穴がある。

データ可視化は、単にきれいな絵を描くことではなく、データサイエンスの基本でもある。DataFrameを画像に変換することで、傾向を理解し、異常値を発見し、意思決定に影響を与えるストーリーを語ることができる。効果的なデータ可視化は、不明瞭なものを明確にし、複雑なものを単純化することで、データをより利用しやすくする。

Pythonのデータ可視化の概観(Jake VanderPlasのオリジナルから許可を得て改変)

図16-1 Pythonのデータ可視化の概観(Jake VanderPlasのオリジナルから許可を得て改変)

免責事項

データ可視化は広範かつ多面的な分野であるが、本書では1章だけを割き、Polarsを使用する際に必要なエッセンスを紹介する。利用できる可視化パッケージの種類が非常に多いが、わかりやすく実用的な内容にするために、少数のパッケージに焦点を当てた。すべてのパッケージを網羅的に紹介することはできないし、比較もしない。 ...

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

Python Distilled ―プログラミング言語Pythonのエッセンス

Python Distilled ―プログラミング言語Pythonのエッセンス

David M. Beazley, 鈴木 駿
入門 Python 3 第2版

入門 Python 3 第2版

Bill Lubanovic, 鈴木 駿, 長尾 高弘

Publisher Resources

ISBN: 9784814401437Publisher Website