From c62bcbbc70ac91ee965d602b462874a599359821 Mon Sep 17 00:00:00 2001 From: Sourcery AI <> Date: Tue, 7 Nov 2023 08:22:13 +0000 Subject: [PATCH] 'Refactored by Sourcery' --- pandasai/prompts/generate_python_code.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pandasai/prompts/generate_python_code.py b/pandasai/prompts/generate_python_code.py index 9bc0813ad..a54d4a794 100644 --- a/pandasai/prompts/generate_python_code.py +++ b/pandasai/prompts/generate_python_code.py @@ -82,5 +82,4 @@ def on_prompt_generation(self) -> None: def _format_instructions(self, instructions: str): lines = instructions.split("\n") indented_lines = [f" {line}" for line in lines[1:]] - result = "\n".join([lines[0]] + indented_lines) - return result + return "\n".join([lines[0]] + indented_lines)