Skip to main content

What type of data does PandasAI support?

PandasAI mission is to make data analysis and manipulation more efficient and accessible to everyone. You can work with data in various ways:
  • CSV and Excel Files: Load data directly from files using simple Python functions
  • SQL Databases: Connect to various SQL databases using our extensions
  • Cloud Data: Work with enterprise-scale data using our specialized extensions (requires Enterprise License)
Let’s start with the basics of loading CSV files, and then we’ll explore the different extensions available.

How to work with CSV files in PandasAI?

Loading data from CSV files is straightforward with PandasAI:

How to work with SQL in PandasAI?

PandasAI provides a sql extension for you to work with SQL, PostgreSQL, MySQL, CockroachDB, and Microsoft SQL Server databases. To make the library lightweight and easy to use, the basic installation of the library does not include this extension. It can be easily installed using pip with the specific database you want to use:
Once you have installed the extension, you can use the semantic data layer and perform data transformations.

How to work with Enterprise Cloud Data in PandasAI?

PandasAI provides Enterprise Edition extensions for connecting to cloud data. These extensions require an Enterprise License. Once you have installed a enterprise cloud data extension, you can use it to connect to your cloud data.

Snowflake extension (ee)

First, install the extension:
Then use it:

Databricks extension (ee)

First, install the extension:
Then use it:

BigQuery extension (ee)

First, install the extension:
Then use it:

Oracle extension (ee)

First, install the extension:
Then use it:

Yahoo Finance extension

First, install the extension:
Then use it:

All data extensions

extensioninstall with poetryinstall with pipneed ee license?
pandasai_sqlpoetry add pandasai-sql[postgres|mysql|cockroachdb|sqlserver]pip install pandasai-sql[postgres|mysql|cockroachdb|sqlserver]No
pandasai_yfinancepoetry add pandasai-yfinancepip install pandasai-yfinanceNo
pandasai_snowflakepoetry add pandasai-snowflakepip install pandasai-snowflakeYes
pandasai_databrickspoetry add pandasai-databrickspip install pandasai-databricksYes
pandasai_bigquerypoetry add pandasai-bigquerypip install pandasai-bigqueryYes
pandasai_oraclepoetry add pandasai-oraclepip install pandasai-oracleYes