Command-Line Tool
[Pai] is the command line tool designed to provide a convenient way to interact with pandasai through a command line interface (CLI).
pai [OPTIONS]
Options:
- -d, --dataset: The file path to the dataset.
- -t, --token: Your HuggingFace or OpenAI API token, if no token provided pai will pull from the .env file.
- -m, --model: Choice of LLM, either openai, open-assistant, or starcoder.
- -p, --prompt: Prompt that PandasAI will run.
To view a full list of available options and their descriptions, run the following command:
pai --help
For example,
pai -d "~/pandasai/example/data/Loan payments data.csv" -m "openai" -p "How many loans are from men and have been paid off?"Should result in the same output as thefrom_csv.pyexample.