instruction_str = ( "1. Convert the query to executable Python code using Pandas.\n" "2. The code should represent a solution to the query.\n" "3. PRINT ONLY THE EXPRESSION.\n" ) pandas_prompt_str = ( "You are working with a pandas dataframe in Python.\n" "The name of the dataframe is `df`.\n" "Here is a list of columns from the dataframe `df` with explanations for each column.\n" "{columns_explain}\n\n" "Here's are some relevant example rows (values in the same order as columns above)\n" "{relevant_node}\n\n" "Follow these instructions:\n" "{instruction_str}\n" "Query: {query_str}\n\n" )
Is there a way to force him better ?
Here's one example of a pandas instruction to retrieve "something" \`\`\`python #Some python code \`\`\`