Srj-ai commited on
Commit
b44f478
·
verified ·
1 Parent(s): a9a9ee6

changes to excel reader

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -43,12 +43,12 @@ def audio_to_text_tool(audio_file_path:str) -> str:
43
 
44
  @tool
45
  def excel_reader(file_path:str) -> str:
46
- """ reads an excel file. Requires the file path as input. Return information on rows and columns.
47
  Args:
48
  file_path: file path as input
49
  """
50
  df= pd.read_excel(file_path)
51
- return f"Rows: {len(df)}, Columns: {list(df.columns)}"
52
 
53
  class BasicAgent:
54
  def __init__(self):
 
43
 
44
  @tool
45
  def excel_reader(file_path:str) -> str:
46
+ """ reads an excel file. Requires the file path as input. Return information on rows and columns and description of the file.
47
  Args:
48
  file_path: file path as input
49
  """
50
  df= pd.read_excel(file_path)
51
+ return f"Rows: {len(df)}, Columns: {list(df.columns)}, Description: {df.describe()}"
52
 
53
  class BasicAgent:
54
  def __init__(self):