Prompt Engineering ChatGPT: Insanely Fast Python Dashboards
Global country safety interactive data visualizations
It’s just nuts how prompt engineering with ChatGPT can significantly speed up the Python coding process for complex data visualizations. By providing precise and detailed instructions, ChatGPT helps reduce the time spent on researching and troubleshooting, allowing you to focus on the implementation of your solution. As an example, we will access a dataset containing the safety scores of different countries for travel over the past 10 years, display the results on an interactive map using folium, integrate it into a Dash app, and create two interesting data visualization charts to give further insight into the data. All created from prompting ChatGPT, in 5 easy-to-follow steps, without actually having to write ANY Python code.
Step 1: Find and Describe the Dataset
So what are we interested in today? Let’s find out which countries are relatively safe to visit these days. We can go and dig around on Google, or how about we just ask ChatGPT.
Prompt to ChatGPT-4: Find the most relevant specific data set that is used for determining the relative safety of a country for the past 10 years. Describe each data point in a detailed list.