Speed Up Your Process Using the Workspace AI Assistant
Discover the power of our AI Assistant. Get started with exciting prompts that will supercharge your data workflow!
The sample dataset we'll use here consists of orders made with a UK-based online retailer from December 2010 to December 2011. Source of dataset.
1. Fix errors
The cell below contains an error. You can press "Fix & Explain" to get your AI Assistant to fix it for you and explain what was wrong with the code.
this_is_a_variable = 42
print(this_is_a_typo_in_my_variable)
2. Speed Up Your SQL
We've connected the below cell to the Employees sample database. Thanks to your AI assistant, you no longer have to write SQL (or Python) yourself.
You can now
- Hover of the cell.
- Click on "AI".
- Enter your prompt and press the return key.
If we want to know in which departement the employees earn the most (on average), you can use this prompt:
List the average salary per departement, from most to least
3. Let AI help you edit
The below code cell was generated using the following prompt.
Can you generate me a leaflet plot pointing to New York?
You can now use your AI Assistant to edit it
- Hover of the next cell.
- Click on "AI".
- Enter your prompt and press the return key.
You can for example try this prompt:
Can you point to London instead?
import folium
# Create a map centered around New York
map = folium.Map(location=[40.7128, -74.0060], zoom_start=12)
# Add a marker for New York
folium.Marker(location=[40.7128, -74.0060], popup='New York').add_to(map)
# Display the map
map
4. Automatically Handle All Your Package Imports
You can also let your AI Assistant create some cells for you.
- Hover on the space in between cells and start talking to your AI Assistant by clicking the "plus" icon or the line.
- Type in your prompt.
- Click on "Ask AI" or press the return key.
Try this prompt:
Import the packages I will need to perform a machine learning classification task.
5. Build Beautiful Visualizations
You can use your AI Assistant to create visualizations for you.
Try this Prompt:
Create a Plotly plot of monthly sales in 2011 based on online_retail.csv.
What else will you do with it?
It's up to you now! How will you use your new AI Assistant?
Looking for more prompts to try? The following tutorial has more: 10 Ways to Speed Up Your Analysis With the Workspace AI Assistant
Looking for more datasets to explore? We have a bunch of datasets your new AI Assistant will love to explore!