Adding visualizations using AI
Visualizing data can be challenging, especially when working with statistical plots like histograms. DataLab makes this easy through the full power of code & AI.
In this exercise, you’ll use DataLab’s AI assistant and Python to visualize when electric car users stop charging their cars. No Python expertise required to complete this!
This exercise is part of the course
Introduction to DataLab
Exercise instructions
- Run the SQL cell to create the
charging_sessions
DataFrame. - In a new cell, use the AI to generate a histogram of the hour that users unplug their cars.
- Answer the question: which hour of the day do most electric car users unplug their cars? You will need to add your answer to the last cell as the variable
popular_unplug_hour
.
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
