Skip to content

How I resolve this error? Do I need to Prompt different in query engine? #14768

Answered by dosubot bot
mraguth asked this question in Q&A
Discussion options

You must be logged in to vote

The error you're encountering is due to the use of imports, which are restricted in the LlamaIndex query engine. Specifically, the imports of pandas and matplotlib.pyplot are causing the issue.

To resolve this, you need to remove the import statements and ensure that the code does not use any disallowed builtins or private/dunder methods. Here is a modified version of your code that avoids using imports:

# Assuming df is already defined and contains the necessary data

# Filter the dataframe for the specified FCCTD_PATHWAY and FCCTD_PROCESS
filtered_df = df[(df['FCCTD_PATHWAY'].isin(['Hub', 'SP', 'CPC'])) & 
                 (df['FCCTD_PROCESS'].isin(['CPC Enrollment', 'Hub Enrollment', '…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@mraguth
Comment options

@dosubot
Comment options

@mraguth
Comment options

@dosubot
Comment options

Answer selected by mraguth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant