Turbocharge with ChatGPT and Python: Interactive Maps In No Time Flat

Prompt engineering data visualizations with Python folium and dash

John Loewen, PhD
Data And Beyond

--

interactive map using dash and folium library — generated by ChatGPT

Data visualization tools in Python are notoriously nit-picky.

With generative AI at our fingertips, we can ask ChatGPT to streamline the process for us.

Now getting a chart or map to display in basic form from a ready-made dataset is not too complicated, but if you are working with different data types (ie. dates) and you want to provide filtering/sorting based on different data types, it can become pretty overwhelming.

Recently on LinkedIn, I viewed a static map that showed forest fires for a period of time for a particular region. A more useful representation is to provide the user/viewer with an interactive map — to let them choose the period of time to display. This would tell a better story.

Now, I have a few hours to kill, so help me out, generative AI (ChatGPT)!

Let’s have a chat and take this idea for a test drive!

The Problem

To start with, I have access to NASA’s global forest fire dataset (it’s public). I want to see the forest fires over time for the area of Canada that I am from — British Columbia. I want to create a map…

--

--

John Loewen, PhD
Data And Beyond

20x Boosted writer || 25 years Comp Sci prof || Writes about Data Science (Python/AI/dataviz) || More on my Substack: johnloewen.substack.com