Skip to content

cannot read csv file #1862

@pradeepkc11

Description

@pradeepkc11

System Info

import os
from pandasai import SmartDataframe
import pandas as pd
from pandasai.llm import AzureOpenAI

df = pd.read_csv("C:/Users/hp/Downloads/titanic.csv")

llm = AzureOpenAI(
api_token="",
azure_endpoint="",
api_version="",
deployment_name="gpt-4o-mini"
)
df1 = SmartDataframe(df, config={"llm": llm})

df1.chat("what are the column name in the dataframe")
i am getting the below error :
"Unfortunately, I was not able to answer your question, because of the following error:\n\n'Index' object has no attribute '_format_native_types'\n"

🐛 Describe the bug

"""
i am getting the below error :
"Unfortunately, I was not able to answer your question, because of the following error:\n\n'Index' object has no attribute '_format_native_types'\n"
"""

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions