PandasAI

PandasAI

PandasAI

The python library for

conversational data analysis

The python library for

conversational data analysis

The python library for

conversational data analysis

Github repo
Github repo
Github repo
Documentation
Documentation
Documentation

9k Github Stars

9k Github Stars

56 contributors

56 contributors

242k downloads

242k downloads

2.3k projects

2.3k projects

Featured in

Unleash the Power of Conversational Data Science.

Unleash the Power of Conversational Data Science.

Analyze Data with Ease - Talk to Your Data Like a Friend

Analyze Data with Ease - Talk to Your Data Like a Friend

Analytics

All your data in one single place.

All your data in one single place.

All your data in one single place.

Insights

Turn your data into actions.

Turn your data into actions.

Turn your data into actions.

Reports

Get every team aligned.

Get every team aligned.

Get every team aligned.

Visualize

Visualize

Easily visualize your business data

Easily visualize

your business data

Data analysis as easy as converse.

Data analysis as easy as converse.

Data analysis as easy as converse.

Write queries in natural language and let the LLM do the analysis.

Write queries in natural language and let the LLM do the analysis.

Write queries in natural language and let the LLM do the analysis.

pip install pandasai

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

# Import the library

from pandasai import SmartDataframe


# Import the LLM

from pandasai.llm import OpenAI

llm = OpenAI(api_token="YOUR_API_TOKEN")


# Import your tables

df = SmartDataframe("data.csv", config={"llm": llm})

df2 = SmartDataframe("data.xlsx", config={"llm": llm})


# Query in natural language

df.chat("Which are the 5 happiest countries?")

df.chat("Plot a chart of the GDP by country")

df2.chat("Filter the top 10 customers by revenue")

# Import the library

from pandasai import SmartDataframe


# Import the LLM

from pandasai.llm import OpenAI

llm = OpenAI(api_token="YOUR_API_TOKEN")


# Import your tables

df = SmartDataframe("data.csv", config={"llm": llm})

df2 = SmartDataframe("data.xlsx", config={"llm": llm})


# Query in natural language

df.chat("Which are the 5 happiest countries?")

df.chat("Plot a chart of the GDP by country")

df2.chat("Filter the top 10 customers by revenue")

Conversational Querying

Query and filter data effortlessly

Smart Data Exploration

Find patterns and insights

Instant Visualization

Automatically generate charts and graphs

Smart Suggestions

Receive contextual recommendations for data transformations

Data Cleaning

Clean and prepare data with interactive support

Model Training

Train, evaluate, and refine machine learning models

Real time data

Connect your databases and datalakes

Easy to integrate

Works with Python, pandas, Jupyter, and more

Trusted by

Open Source

Open Source

Open Source

PandasAI is a open source project that wants to democratize the accessibility of data.

PandasAI is and will always be free, with MIT license.

Go to the repo

Self-hosted

Self-hosted

Self-hosted

Planning to implement PandasAI in your production setup? We're delighted to assist. Connect with us and discover the infinite potential of PandasAI.

Contact Us

Try PandasAI now

Discover the transformative world of data exploration and dive into PandasAI now

Github repo
Github repo
Github repo
Documentation
Documentation
Documentation

© 2023 Sinaptik, Inc. All Rights reserved

We are hiring!

© 2023 Sinaptik, Inc. All Rights reserved

We are hiring!