{ "cells": [ { "cell_type": "code", "id": "a49a961ef9dafc8b", "metadata": { "ExecuteTime": { "end_time": "2025-06-10T15:26:54.606280Z", "start_time": "2025-06-10T15:26:54.499875Z" } }, "source": "from langchain_community.document_loaders import UnstructuredExcelLoader", "outputs": [], "execution_count": 3 }, { "metadata": { "ExecuteTime": { "end_time": "2025-06-10T15:26:54.806898Z", "start_time": "2025-06-10T15:26:54.804638Z" } }, "cell_type": "code", "source": "file_dir = 'files/7bd855d8-463d-4ed5-93ca-5fe35145f733.xlsx'", "id": "7f1454e97563e93", "outputs": [], "execution_count": 4 }, { "metadata": { "ExecuteTime": { "end_time": "2025-06-10T15:29:12.643058Z", "start_time": "2025-06-10T15:29:12.625239Z" } }, "cell_type": "code", "source": [ "\n", "loader = UnstructuredExcelLoader(file_dir, mode=\"elements\")\n", "docs = loader.load()\n", "\n", "print(len(docs))\n", "\n", "# docs" ], "id": "initial_id", "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "1\n" ] } ], "execution_count": 7 }, { "metadata": { "ExecuteTime": { "end_time": "2025-06-10T15:32:40.555855Z", "start_time": "2025-06-10T15:32:40.553019Z" } }, "cell_type": "code", "source": "print(docs[0].metadata['text_as_html'])", "id": "6c69b91ca45b0039", "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "
LocationBurgersHot DogsSaladsFriesIce CreamSoda
Pinebrook159419992002200519771980
Wharvton198320082014201520172018
Sagrada201920222022202320212019
Algrimand195819711982198919982009
Marztep201520162018201920212022
San Cecelia201120102012201320152016
Pimento201719992001200319692967
Tinseles196719691982199420052006
Rosdale200720092021198920052011
\n" ] } ], "execution_count": 11 }, { "metadata": {}, "cell_type": "code", "outputs": [], "execution_count": null, "source": "", "id": "29d83c36757726aa" } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 2 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython2", "version": "2.7.6" } }, "nbformat": 4, "nbformat_minor": 5 }