Skip to Content
Pythonによる地理空間データ分析 ―例題で学ぶロケーションインテリジェンス
book

Pythonによる地理空間データ分析 ―例題で学ぶロケーションインテリジェンス

by Bonny P. McClain, 廣川 類
September 2023
Intermediate to advanced
272 pages
4h 26m
Japanese
O'Reilly Japan, Inc.
Content preview from Pythonによる地理空間データ分析 ―例題で学ぶロケーションインテリジェンス

7章GeoPandasと空間統計学

地図は美しいものです。地図が語るストーリーはとても魅力的で、思わずその中の地理空間統計学を軽視してしまいがちです。しかし、地理空間地図は単なる静止画像ではありません。GISレイヤの特定の地物に関連する属性や、ラスタ画像で観測されたピクセル密度など、さまざまな情報が埋め込まれています。

Pythonには、地理空間データを扱うさまざまなパッケージがあります。Pythonに慣れている人なら、pandas(https://pandas.pydata.org/docs/)というPython専用のデータ分析ツールのことは知っているでしょう。GeoPandas(https://geopandas.org/)はpandasの拡張で、「GeoDataFrame」(各行が点、線またはポリゴンのような空間フィーチャである地理空間データフレーム)を用いて、ジオメトリおよび地理空間データを操作できます。

この章では、GeoPandas、GeoDataFrame、データを可視化するmatplotlib(https://matplotlib.org)や Census Data APIなどの他の重要なパッケージを使って、データを分析したり地図を作成する方法について説明します。また、地理空間ファイルにアクセスする方法、人口統計地図を作成し比較することによって人口統計データをより深く掘り下げる方法も学びます。

7.1 GeoPandasのインストール

GeoPandasをインストールするには、ターミナルでcondaconda-forgeを使用します。前の章と同様に、本章のデータを扱うために必要なすべてのファイルの環境を作る方法も紹介します。

GeoPandasのインストールは少しやっかいです。気分屋のティーンエイジャーとでも思ってください。それはしばしば先頭に立ちたがり(インポート)、最新のトレンドを好みます(依存関係のバージョンに注意を払う)。また、キャッチーなニックネームを好みます。通常、GeoPandasは ...

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

システム運用アンチパターン ―エンジニアがDevOpsで解決する組織・自動化・コミュニケーション

システム運用アンチパターン ―エンジニアがDevOpsで解決する組織・自動化・コミュニケーション

Jeffery D. Smith, 田中 裕一
scikit-learn、Keras、TensorFlowによる実践機械学習 第2版

scikit-learn、Keras、TensorFlowによる実践機械学習 第2版

Aurélien Géron, 下田 倫大, 長尾 高弘

Publisher Resources

ISBN: 9784814400324Publisher Website