Modifying existing code with AI
Imagine you want to create multiple visualizations for different categories to uncover patterns within groups.
In this exercise, you’ll use AI to modify the histogram to see if the electric car unplugging pattern is similar on weekdays and weekends.
This exercise is part of the course
Introduction to DataLab
Exercise instructions
- Run the SQL cell to create the
charging_sessions
DataFrame. - Use the AI to modify your histogram so you only view data for Fridays.
- Answer the question: What hour will most users unplug their car on a Friday? You will need to add your answer to the last cell as the variable
popular_unplug_hour_friday
.
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
