Subsurface Syntax

Subsurface Syntax

Sketch: A Promising AI Library to Help With Pandas Dataframes Directly in Jupyter

Leveraging the Power of AI Within Jupyter Notebooks

Andy McDonald's avatar
Andy McDonald
Feb 21, 2023
∙ Paid

Leveraging the Power of AI Within Jupyter Notebooks

Photo from Pexels by Tara Winstead

The interest in using the power of AI and large language models to create interactive chatbots like ChatGPT has exploded in recent months. It was only a matter of time before we could use the powers of these models directly from a Python library within a Jupyter Notebook.

A recently launched Python library called Sketch brings an AI coding assistant directly to Python and is easily used within Jupyter notebooks and IDEs. The library is aimed at making it easier for users to understand and explore data stored within a pandas dataframe without the need for additional plugins.

The sketch library can quickly summarise data that is stored within the dataframe. It does so by creating data summaries using approximation algorithms (known as data sketches) and then passing the generated summaries into a large language model.

Through natural language input and the available functions, we can explore our dataset. T…

Keep reading with a 7-day free trial

Subscribe to Subsurface Syntax to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2026 Andy McDonald · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture