Spaces:
No application file
No application file
# sheet_reader.py | |
import pandas as pd | |
def list_sheets(file_path: str): | |
xls = pd.ExcelFile(file_path) | |
return xls.sheet_names | |
def read_sheet(file_path: str, sheet_name: str) -> pd.DataFrame: | |
return pd.read_excel(file_path, sheet_name=sheet_name) |