-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
57 changed files
with
34 additions
and
10,371 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,22 @@ | ||
"""Example of using PandasAI with a CSV file.""" | ||
# """Example of using PandasAI with a CSV file.""" | ||
|
||
from pandasai import Agent | ||
# from pandasai import Agent | ||
|
||
# By default, unless you choose a different LLM, it will use BambooLLM. | ||
# You can get your free API key signing up at https://pandabi.ai (you can also configure it in your .env file) | ||
# # By default, unless you choose a different LLM, it will use BambooLLM. | ||
# # You can get your free API key signing up at https://pandabi.ai (you can also configure it in your .env file) | ||
|
||
agent = Agent( | ||
"examples/data/Loan payments data.csv", | ||
) | ||
response = agent.chat("How many loans are from men and have been paid off?") | ||
# agent = Agent( | ||
# "examples/data/Loan payments data.csv", | ||
# ) | ||
# response = agent.chat("How many loans are from men and have been paid off?") | ||
|
||
print(response) | ||
# Output: 247 loans have been paid off by men. | ||
# print(response) | ||
# # Output: 247 loans have been paid off by men. | ||
|
||
|
||
import pandasai as pai | ||
import pandasai_sql | ||
|
||
df = pai.load("sipa/users") | ||
response = df.chat("How many users in total?") | ||
print(response) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.