import pandas as pd def excel_to_dict(file_path): df = pd.read_excel(file_path) return df.to_dict(orient='records')