From the course: Complete Guide to Generative AI for Data Analysis and Data Science

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

Solution: Visualizing data

Solution: Visualizing data

(bright upbeat music) - [Instructor] Let's see the solution to this challenge regarding visualization. The first thing I want to do is attach the dataset that is available with this lesson. I have already downloaded it to my computer, so I'm going to upload it into ChatGPT. And for this lesson, I'm going to go over here and I'm going to grab the grocery sales dataset for this chapter. And the prompt that we're going to use is the following, create a Python script to generate a visualization to show the distribution of data in the cost per unit column and sales price per unit column. So again, we're almost literally taking our requirement and using it as a prompt where there's very little tweaking that we need to do. And what we see here is, of course, display of the data with the date sold, product name, product category, and then the cost, and sale information, and unit sold information, so let's see what kind of script is being generated. And what we see here, the script shows us…

Contents