Skip to content

Commit

Permalink
Release v2.0.17
Browse files Browse the repository at this point in the history
  • Loading branch information
gventuri committed Mar 18, 2024
1 parent bad80c3 commit 4c97eb3
Show file tree
Hide file tree
Showing 31 changed files with 48 additions and 9 deletions.
2 changes: 2 additions & 0 deletions examples/agent.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import os

import pandas as pd

from pandasai import Agent

employees_data = {
Expand Down
1 change: 1 addition & 0 deletions examples/from_airtable.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os

from pandasai import Agent
from pandasai.connectors import AirtableConnector

Expand Down
1 change: 1 addition & 0 deletions examples/from_csv.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Example of using PandasAI with a CSV file."""

import os

from pandasai import Agent

# Get your FREE API key signing up at https://pandabi.ai.
Expand Down
1 change: 1 addition & 0 deletions examples/from_databricks.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Example of using PandasAI with a DataBricks"""

import os

from pandasai import Agent

# A license might be required for using Snowflake with PandasAI
Expand Down
2 changes: 2 additions & 0 deletions examples/from_dataframe.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
"""Example of using PandasAI with a Pandas DataFrame"""

import os

import pandas as pd
from data.sample_dataframe import dataframe

from pandasai import Agent

df = pd.DataFrame(dataframe)
Expand Down
1 change: 1 addition & 0 deletions examples/from_excel.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Example of using PandasAI with am Excel file."""

import os

from pandasai import Agent

# Get your FREE API key signing up at https://pandabi.ai.
Expand Down
1 change: 1 addition & 0 deletions examples/from_google_sheets.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Example of using PandasAI with am Excel file."""

import os

from pandasai import Agent

# Betas & Bludgers Writing Competitions List (source: https://heystacks.com/?type=sheets&tags=data)
Expand Down
3 changes: 2 additions & 1 deletion examples/from_googlebigquery.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import os
import base64
import json
import os

from pandasai import SmartDataframe

# A license might be required for using Snowflake with PandasAI
Expand Down
1 change: 1 addition & 0 deletions examples/from_parquet.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Example of using PandasAI with a Parquet file."""

import os

from pandasai import Agent

# Get your FREE API key signing up at https://pandabi.ai.
Expand Down
1 change: 1 addition & 0 deletions examples/from_snowflake.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Example of using PandasAI with a Snowflake"""

import os

from pandasai import Agent

# A license might be required for using Snowflake with PandasAI
Expand Down
1 change: 1 addition & 0 deletions examples/from_sql.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Example of using PandasAI with a CSV file."""

import os

from pandasai import Agent
from pandasai.connectors import MySQLConnector, PostgreSQLConnector, SqliteConnector

Expand Down
1 change: 1 addition & 0 deletions examples/from_yahoo_finance.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os

from pandasai import Agent
from pandasai.connectors.yahoo_finance import YahooFinanceConnector

Expand Down
2 changes: 2 additions & 0 deletions examples/save_chart.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
"""Example of using PandasAI to generate and save a chart from a Pandas DataFrame"""

import os

import pandas as pd
from data.sample_dataframe import dataframe

from pandasai import Agent
from pandasai.helpers import path

Expand Down
2 changes: 2 additions & 0 deletions examples/show_chart.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
"""Example of using PandasAI to generate a chart from a Pandas DataFrame"""

import os

import pandas as pd
from data.sample_dataframe import dataframe

from pandasai import Agent

df = pd.DataFrame(dataframe)
Expand Down
4 changes: 3 additions & 1 deletion examples/skills_example.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import os

import pandas as pd

from pandasai import Agent
from pandasai.skills import skill
import os

employees_data = {
"EmployeeID": [1, 2, 3, 4, 5],
Expand Down
1 change: 1 addition & 0 deletions examples/sql_direct_config.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Example of using PandasAI with a CSV file."""
import os

from pandasai import Agent
from pandasai.connectors import PostgreSQLConnector

Expand Down
2 changes: 2 additions & 0 deletions examples/using_flask.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
flask –-app using_flask.py run
"""
import os

import pandas as pd
from flask import Flask, render_template, request

from pandasai import SmartDatalake
from pandasai.responses.response_parser import ResponseParser

Expand Down
2 changes: 2 additions & 0 deletions examples/using_pandasai_log_server.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import os

import pandas as pd

from pandasai import Agent

employees_data = {
Expand Down
2 changes: 2 additions & 0 deletions examples/using_streamlit.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
streamlit run examples/using_streamlit.py
"""
import os

import pandas as pd

from pandasai import Agent
from pandasai.responses.streamlit_response import StreamlitResponse

Expand Down
1 change: 1 addition & 0 deletions examples/using_train.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os

from pandasai import Agent

# Get your FREE API key signing up at https://pandabi.ai.
Expand Down
2 changes: 2 additions & 0 deletions examples/using_workspace_env.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import os

import pandas as pd

from pandasai import Agent

employees_data = {
Expand Down
1 change: 1 addition & 0 deletions examples/with_azure.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import pandas as pd
from data.sample_dataframe import dataframe

from pandasai import Agent
from pandasai.llm import AzureOpenAI

Expand Down
4 changes: 3 additions & 1 deletion examples/with_multiple_dataframes.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
"""Example of using PandasAI on multiple Pandas DataFrame"""

import os

import pandas as pd

from pandasai import Agent
import os

employees_df = pd.DataFrame(
{
Expand Down
4 changes: 3 additions & 1 deletion examples/with_name_and_description.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
"""Example of using PandasAI with a Pandas DataFrame"""

import os

import pandas as pd
from data.sample_dataframe import dataframe

from pandasai import Agent
import os

df = pd.DataFrame(dataframe)

Expand Down
2 changes: 2 additions & 0 deletions examples/with_privacy_enforced.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
"""Example of using PandasAI with a Pandas DataFrame"""
import os

import pandas as pd

from pandasai import Agent

from .data.sample_dataframe import dataframe
Expand Down
2 changes: 2 additions & 0 deletions examples/with_vertexai.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
"""Example of using PandasAI with a CSV file and Google Vertexai."""

import os

import pandas as pd

from pandasai import Agent
from pandasai.llm import GoogleVertexAI

Expand Down
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ nav:
- Contributing: CONTRIBUTING.md
- License: license.md
extra:
version: "2.0.16"
version: "2.0.17"
plugins:
- search
- mkdocstrings:
Expand Down
2 changes: 1 addition & 1 deletion pandasai/llm/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from .azure_openai import AzureOpenAI
from .bamboo_llm import BambooLLM
from .base import LLM
from .bedrock_claude import BedrockClaude
from .google_gemini import GoogleGemini
Expand All @@ -7,7 +8,6 @@
from .huggingface_text_gen import HuggingFaceTextGen
from .langchain import LangchainLLM
from .openai import OpenAI
from .bamboo_llm import BambooLLM

__all__ = [
"LLM",
Expand Down
2 changes: 1 addition & 1 deletion pandasai/llm/bamboo_llm.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from typing import Optional

from ..helpers.request import Session
from .base import LLM
from ..prompts.base import BasePrompt
from .base import LLM


class BambooLLM(LLM):
Expand Down
2 changes: 1 addition & 1 deletion pandasai/schemas/df_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from pandasai.pydantic import BaseModel, Field, validator

from ..exceptions import LLMNotFoundError
from ..llm import LLM, LangchainLLM, BambooLLM
from ..llm import LLM, BambooLLM, LangchainLLM


class LogServerConfig(TypedDict):
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pandasai"
version = "2.0.16"
version = "2.0.17"
description = "Chat with your database (SQL, CSV, pandas, polars, mongodb, noSQL, etc). PandasAI makes data analysis conversational using LLMs (GPT 3.5 / 4, Anthropic, VertexAI) and RAG."
authors = ["Gabriele Venturi"]
license = "MIT"
Expand Down

0 comments on commit 4c97eb3

Please sign in to comment.