From the course: Generative AI for Data Engineering: ChatGPT Power Tips

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Generating data engineering code with ChatGPT

Generating data engineering code with ChatGPT

- [Instructor] So far in this course, we have learned how we can write a good ChatGPT prompt. Now, it's time to do that in a very practical manner. So let's assume that I want to write a Python script to clean the data from a CSV file where my column names are Customerid, name, address, and phone number. And I can just say Enter. Now, here, you can understand that we have tried to give a little bit of context that we want to write a script and we want to clean the data from CSV file, and I have given the exact column names. So now, you can understand that it has written an entire script for me. Maybe, if tomorrow I feel that, while I am doing this, I have not given a way on which I want to clean. For example, here you see, I've not given what to clean. I just gave the details. So ChatGPT has used its own knowledge and thought that there could be possibility that a phone number might not be a correct one. So it has added a logic to clean the phone number, right? So that's how it can do…

Contents