Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
5
Help us understand the problem. What are the problem?

More than 1 year has passed since last update.

posted at

updated at

Pythonのfoliumで岩手県内の病院の場所を可視化してみる

この記事について

Pythonのfoliumモジュールを使って、岩手県の病院の位置情報を可視化してみる
完成図↓
 スクリーンショット 2019-06-05 10.07.33.png

参照データ

岩手県の病院の一覧
https://www.med-info.pref.iwate.jp/pdf/meibo.pdf

病院毎の緯度・経度のcsv↓
https://github.com/koheikobayashi/open_jupyter/blob/master/iwate-hospital/latitude_and_longitute.csv

コード

main.py
import pandas as pd 
import folium
from folium.plugins import FastMarkerCluster

lons = pd.read_csv('latitude_and_longitute.csv')  #参照データの病院毎の緯度・経度のcsvを使用
data = lons.values.tolist()

map1 = folium.Map(location=[39.250285, 141.636919], zoom_start=6.0)
FastMarkerCluster(data=data).add_to(map1)
map1.save("result.html")

完成したものはこちら

このデータの考察についてはてなブログに書いてみました

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
5
Help us understand the problem. What are the problem?