-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
load and examples scripts #1472
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❌ Changes requested. Reviewed everything up to be91d4a in 47 seconds
More details
- Looked at
177
lines of code in5
files - Skipped
0
files when reviewing. - Skipped posting
5
drafted comments based on config settings.
1. new_examples/load_df.py:5
- Draft comment:
Avoid hardcoding API keys and URLs. Use environment variables or configuration files to manage them securely. - Reason this comment was not posted:
Comment looked like it was already resolved.
2. new_examples/quickstart.py:5
- Draft comment:
Avoid hardcoding API keys and URLs. Use environment variables or configuration files to manage them securely. - Reason this comment was not posted:
Marked as duplicate.
3. new_examples/save_csv.py:5
- Draft comment:
Avoid hardcoding API keys and URLs. Use environment variables or configuration files to manage them securely. - Reason this comment was not posted:
Marked as duplicate.
4. new_examples/use_openai.py:6
- Draft comment:
Avoid hardcoding API keys and URLs. Use environment variables or configuration files to manage them securely. - Reason this comment was not posted:
Marked as duplicate.
5. new_examples/use_openai.py:8
- Draft comment:
Avoid hardcoding API tokens. Use environment variables or configuration files to manage them securely. - Reason this comment was not posted:
Marked as duplicate.
Workflow ID: wflow_cNDmdPq1oz8gJgiW
Want Ellipsis to fix these issues? Tag @ellipsis-dev
in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
import os | ||
import pandasai as pai | ||
|
||
os.environ["PANDASAI_API_URL"] = "http://localhost:8000/" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gdcsinaptik I'd remove this as it's not meant to be committed. The default value should be used by default
import os | ||
import pandasai as pai | ||
|
||
os.environ["PANDASAI_API_URL"] = "http://localhost:8000/" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gdcsinaptik I'd remove this as it's not meant to be committed. The default value should be used by default
# Print LLM details | ||
print("LLM Type:", type(llm).__name__) | ||
print("LLM Instance:", llm) | ||
print("LLM Model:", llm.model) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gdcsinaptik why are we printing these?
print("\nCurrent PandasAI Config:") | ||
print("Active LLM:", pai.config._config.llm) | ||
|
||
df = pai.load("/home/giuseppe/Projects/pandas-ai/datasets/testing/loans") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gdcsinaptik this is wrong
Important
Add new example scripts for
pandasai
usage and update dependencies inpyproject.toml
.load_df.py
to demonstrate loading datasets withpandasai.load()
using virtualized option.quickstart.py
to show reading CSV, asking questions, and plotting withdf.chat()
.save_csv.py
to demonstrate saving datasets with field descriptions usingdf.save()
.use_openai.py
to configure and use OpenAI LLM withpandasai
.pyarrow
topyproject.toml
dependencies.This description was created by for be91d4a. It will automatically update as commits are pushed.