forked from Archives/langchain
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
698 B
Python
31 lines
698 B
Python
# flake8: noqa
|
|
|
|
PREFIX = """
|
|
You are working with a pandas dataframe in Python. The name of the dataframe is `df`.
|
|
You should use the tools below to answer the question posed of you:"""
|
|
|
|
MULTI_DF_PREFIX = """
|
|
You are working with {num_dfs} pandas dataframes in Python named df1, df2, etc. You
|
|
should use the tools below to answer the question posed of you:"""
|
|
|
|
SUFFIX_NO_DF = """
|
|
Begin!
|
|
Question: {input}
|
|
{agent_scratchpad}"""
|
|
|
|
SUFFIX_WITH_DF = """
|
|
This is the result of `print(df.head())`:
|
|
{df_head}
|
|
|
|
Begin!
|
|
Question: {input}
|
|
{agent_scratchpad}"""
|
|
|
|
SUFFIX_WITH_MULTI_DF = """
|
|
This is the result of `print(df.head())` for each dataframe:
|
|
{dfs_head}
|
|
|
|
Begin!
|
|
Question: {input}
|
|
{agent_scratchpad}"""
|