Writing

Introducing PandasAI

·3 min read·AI

I built PandasAI because I was sick of writing the same groupby-filter-plot boilerplate for questions that should take one sentence to ask.

What it is

PandasAI wraps a pandas dataframe with a language model. You ask a question in plain English, it writes and runs the pandas code, you get an answer. No prompt engineering on your end.

Why it exists

Every data team has the same problem: the people who need an answer from the data can't write the code, and the people who can write the code are busy. PandasAI doesn't fix that entirely, but it collapses the distance between "I have a question" and "I have an answer" for anyone who can type a sentence.

What it isn't

It's not magic, and it won't save you from a messy dataset. It gets things wrong sometimes, that's true of every LLM-backed tool, and I'd rather say that upfront than pretend otherwise.

Code's open source: PandasAI repo. It's rough in places. That's what early users and bug reports are for: file one if you hit something, or send a PR if you fix it yourself.