Understanding the AI and natural language processing capabilities of PandasAI
.chat
method on a dataframe, PandasAI passes to the LLM the question, the table headers, and 5-10 rows of the Dataframe.
It then instructs the LLM to generate the most relevant code, whether Python or SQL. The code is then executed locally.
There are different output formats supported by PandasAI, which can be found here.
config.set()
method.
Example:
bool
True
pandasai.log
file in the root of your project.bool
False
int
3