Skip to content

Commit a8a5e77

Browse files
removing misleading template
1 parent ccb9e9a commit a8a5e77

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

pandasai/core/prompts/templates/generate_python_code_with_sql.tmpl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ def execute_sql_query(sql_query: str) -> pd.Dataframe
1010
"""This method connects to the database, executes the sql query and returns the dataframe"""
1111
</function>
1212

13-
For the charts, you can either use `matplotlib.pyplot` or `plotly.express` to generate the charts.
14-
Use `plotly.express` only if the user explicitly asks for it, otherwise use `matplotlib.pyplot`.
15-
If `plotly.express` is used, save each chart by using `fig.write_json` (e.g., `fig.write_json("path/to/file.json", pretty=True)`).
16-
1713
{% if last_code_generated != "" and context.memory.count() > 0 %}
1814
{{ last_code_generated }}
1915
{% else %}

tests/unit_tests/prompts/test_sql_prompt.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,6 @@ def execute_sql_query(sql_query: str) -> pd.Dataframe
8181
"""This method connects to the database, executes the sql query and returns the dataframe"""
8282
</function>
8383
84-
For the charts, you can either use `matplotlib.pyplot` or `plotly.express` to generate the charts.
85-
Use `plotly.express` only if the user explicitly asks for it, otherwise use `matplotlib.pyplot`.
86-
If `plotly.express` is used, save each chart by using `fig.write_json` (e.g., `fig.write_json("path/to/file.json", pretty=True)`).
87-
8884
8985
Update this initial code:
9086
```python

0 commit comments

Comments
 (0)