From the course: Enhancing Your Productivity as a Data Scientist with Generative AI
Unlock this course with a free trial
Join today to access over 24,700 courses taught by industry experts.
Use case 10: Feature engineering copilot
From the course: Enhancing Your Productivity as a Data Scientist with Generative AI
Use case 10: Feature engineering copilot
- [Instructor] Now that we have our list of seafood items that have been sold in recent dates, we want to actually create some meaningful features from it. Now switch to branch 0305E or 0305B. If you want to follow along. The goal of this video will be to have generative AI right code for us that is helping us with the actual feature engineering. But before we can actually do this, we need to prep our data a little bit further, in this case, without the help of AI. So first of all, let's load our data as we used to do it before, and then apply our data cleaning script, also nothing new here. Then we will map the seafood items using the dictionary that we just created previously. And this is the point where we now need to aggregate our data to a weekly format. Because remember, we want to do a weekly forecast. So that means every row in our data frame must be an aggregate of one week of data. And this is essentially what this script is doing here. So first of all, I'm adding a new…