CHAPTER 8
CHATGPT AND DATA VISUALIZATION
This chapter contains examples of using ChatGPT to perform data visualization, such as creating charts and graphs that are based on datasets (e.g., the Titanic dataset). ChatGPT generated all the code samples shown here via the Advanced data analysis plugin. ChatGPT also generated some of the accompanying text for the Python-based code samples.
The first part of this chapter describes the process of uploading a dataset in ChatGPT and then provides prompts for tasks such as explaining the features in a given dataset, generating visualizations, and downloading the curated dataset. You will also learn how to prompt ChatGPT to create and train a machine learning model.
The second part of this chapter contains examples of data visualization with Matplotlib, where the code samples were generated with ChatGPT. The third part of this chapter contains examples of data visualization with Seaborn, where the code samples were generated with ChatGPT.
After...