Тёмный

Mapping with Python & Folium - Creating Maps from Raw CSV/JSON Data 

BugBytes
Подписаться 27 тыс.
Просмотров 18 тыс.
50% 1

In this video, we'll create Folium maps from raw CSV data in Python. We'll learn how to read in the data, transform it to extract the information we need (latitude/longitude), and create Folium maps based on this data.
The source data can be found here: catalog.data.gov/dataset/elec...
We'll learn how to add Markers to the map, how to use popups to display text on markers, and how to cluster markers together dynamically using the FastMarkerCluster.
📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
00:00 Intro
00:57 Reading CSV data into Python application
03:31 Using string manipulation to extract latitude/longitude
06:25 Creating a map using Folium
07:43 Adding Markers to the Folium map from the data
09:51 Adding popups displaying text on the Folium markers
10:36 Clustering markers with the FastMarkerCluster
▶️ Full Playlist:
• Geospatial Python
☕️ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲:
To support the channel and encourage new videos, please consider buying me a coffee here:
ko-fi.com/bugbytes
𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:
📖 Blog: www.bugbytes.io/posts/
👾 Github: github.com/bugbytes-io/
🐦 Twitter: / bugbytesio
📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:
Dataset: catalog.data.gov/dataset/elec...
Folium: python-visualization.github.i...
FastMarkerCluster: python-visualization.github.i...
#python #gis #mapping #datascience

Опубликовано:

 

7 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 31   
@ricoflores428
@ricoflores428 Год назад
Great content! Direct, concise, clear! Kudos!
@bugbytes3923
@bugbytes3923 Год назад
Thanks very much for watching!
@Chris_Woodruff
@Chris_Woodruff Год назад
I’ve used Plotly for previous projects but haven’t tried Folium yet but I will be checking this out now. Easy functions to create a dynamic map and clustering with a single line is a great bonus. The only real task may be formatting data which is still not bad. Thank you and hope you had a nice holiday!
@bugbytes3923
@bugbytes3923 Год назад
Thanks very much, hope you had a good holiday too!
@bgrantcooper
@bgrantcooper Год назад
You provide really good clear explanations that I learn from every time I watch your videos. So glad I stumbled across them one day and started watching. Thank you.
@bugbytes3923
@bugbytes3923 Год назад
Hey - thank you very much for that, it's great to hear it! I'm glad the videos have been useful for you.
@arunima2916
@arunima2916 Год назад
As usual Great content!! Thanks a lot
@bugbytes3923
@bugbytes3923 Год назад
Many thanks!
@SadafMahmoudi
@SadafMahmoudi 2 месяца назад
Thank you! Really helpful.
@bugbytes3923
@bugbytes3923 2 месяца назад
Thanks! Glad it helped.
@alifadl386
@alifadl386 5 дней назад
Thanks
@robmonkriedlinger
@robmonkriedlinger Год назад
very cool - thanks dude
@bugbytes3923
@bugbytes3923 Год назад
Thanks!
@jankaatz6631
@jankaatz6631 Год назад
Very nicke, please more linke that!
@bugbytes3923
@bugbytes3923 Год назад
Thank you!
@vivaldi-qo7xj
@vivaldi-qo7xj Год назад
nice. thnx.
@bugbytes3923
@bugbytes3923 Год назад
you're welcome!
@saugat_lm10
@saugat_lm10 6 месяцев назад
Is there a way to add a dropdown or an option in the produced map to just select a few stations and only display them? I am doing a similar project but I need to be able to filter the popups as there are too many of them to be shown together.
@tet1patsstudent670
@tet1patsstudent670 Год назад
How can we plot live marker's coordinates? in my case the csv file updates the lat and lon every 1 minute
@oliveselow-bw3py
@oliveselow-bw3py 7 месяцев назад
Like it python.!!!
@ilyaafanasev3083
@ilyaafanasev3083 Год назад
Hola, good... but, if you need update information in popup. popup=folium.Popup(folium.IFrame('Site_name: ' + str(row.site_name) + '' + 'Azimuth: ' + str(row.azimuth) + '' + 'Height: ' + str(row.height) + '' + 'Bands: ' + str(row.band)), min_width=400, max_width=1000) and height it takes different values and corresponds to different heights and bands. how to output such information for a single marker?
@sphelelentilane3166
@sphelelentilane3166 Год назад
Hi I keep getting this error while trying to perform this code: KeyError Traceback (most recent call last) Input In [46], in () 2 reader = csv.DictReader(csvfile) 3 for row in reader: ----> 4 records.append({key: row[key] for key in keys}) Input In [46], in (.0) 2 reader = csv.DictReader(csvfile) 3 for row in reader: ----> 4 records.append({key: row[key] for key in keys}) KeyError: 'Station Name'
@skyful9
@skyful9 Год назад
Can we add or show statistics on a specific area?
@bugbytes3923
@bugbytes3923 Год назад
You can certainly group data within certain boundaries to calculate area-specific statistics, yes!
@sourab_garg
@sourab_garg 8 месяцев назад
when i add tiles in folium maps i am getting "these basemap maps will no longer available from 31 oct 2023 in python"
@kavustock
@kavustock Год назад
Okay, how do we add the Station Name as the popup when using FastMarkerCluster?
@bugbytes3923
@bugbytes3923 Год назад
Ah, that's a good question. I'll need to look into it though.
@kavustock
@kavustock Год назад
@@bugbytes3923 Seems like there is a callback function available to FastMarkerCluster
@PKX1167
@PKX1167 Год назад
Hello nice video and excelent explanation. How can i get in contact you you?
@bugbytes3923
@bugbytes3923 Год назад
Thank you! There's a contact form here: bugbytes.io/contact/
Далее
Intro to GeoPandas
21:01
Просмотров 17 тыс.
POLI зовет Газана
00:12
Просмотров 633 тыс.
Python Maps with Folium
30:41
Просмотров 69 тыс.
Using Folium with GeoPandas
20:18
Просмотров 17 тыс.
plotting maps with geopandas and matplotlib
15:09
Просмотров 52 тыс.
Top 5 Free Mapping Tools
14:05
Просмотров 22 тыс.
Solving one of PostgreSQL's biggest weaknesses.
17:12
Просмотров 177 тыс.