Former-commit-id: 20e4f49e95a9ecc076e465f38e029dc7129a9d4a
pull/160/head
Kye 2 years ago
parent 3d157e2dfa
commit d6e33b652c

@ -1502,7 +1502,7 @@ def pushd(new_dir):
@tool
def process_csv(
csv_file_path: str, instructions: str, output_path: Optional[str] = None
llm, csv_file_path: str, instructions: str, output_path: Optional[str] = None
) -> str:
"""Process a CSV by with pandas in a limited REPL.\
Only use this after writing data to disk as a csv file.\
@ -1513,7 +1513,7 @@ def process_csv(
df = pd.read_csv(csv_file_path)
except Exception as e:
return f"Error: {e}"
agent = create_pandas_dataframe_agent(llm, df, max_iterations=30, verbose=True)
agent = create_pandas_dataframe_agent(llm, df, max_iterations=30, verbose=False)
if output_path is not None:
instructions += f" Save output to disk at {output_path}"
try:

Loading…
Cancel
Save