<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Import excel spreadsheet to a database table in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/import-excel-spreadsheet-to-a-database-table/m-p/126416#M47687</link>
    <description>&lt;P&gt;Hi MGraham,&lt;/P&gt;&lt;P&gt;To import an Excel spreadsheet into a database table in Databricks, you can first upload the Excel file to DBFS (Databricks File System), then use libraries like pandas to read the Excel file (e.g., pd.read_excel("/dbfs/path/to/file.xlsx")) and convert it to a Spark DataFrame. Once in a DataFrame, you can write it to a database table using .write.format("jdbc") for external databases or .write.saveAsTable("table_name") for internal Databricks tables. Let me know if you'd like a quick code example!&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Fri, 25 Jul 2025 06:07:22 GMT</pubDate>
    <dc:creator>jerrygen78</dc:creator>
    <dc:date>2025-07-25T06:07:22Z</dc:date>
    <item>
      <title>Import excel spreadsheet to a database table</title>
      <link>https://community.databricks.com/t5/data-engineering/import-excel-spreadsheet-to-a-database-table/m-p/126411#M47686</link>
      <description>&lt;P&gt;How to&amp;nbsp;Import excel spreadsheet to a database table.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jul 2025 22:42:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/import-excel-spreadsheet-to-a-database-table/m-p/126411#M47686</guid>
      <dc:creator>MGraham</dc:creator>
      <dc:date>2025-07-24T22:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: Import excel spreadsheet to a database table</title>
      <link>https://community.databricks.com/t5/data-engineering/import-excel-spreadsheet-to-a-database-table/m-p/126416#M47687</link>
      <description>&lt;P&gt;Hi MGraham,&lt;/P&gt;&lt;P&gt;To import an Excel spreadsheet into a database table in Databricks, you can first upload the Excel file to DBFS (Databricks File System), then use libraries like pandas to read the Excel file (e.g., pd.read_excel("/dbfs/path/to/file.xlsx")) and convert it to a Spark DataFrame. Once in a DataFrame, you can write it to a database table using .write.format("jdbc") for external databases or .write.saveAsTable("table_name") for internal Databricks tables. Let me know if you'd like a quick code example!&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jul 2025 06:07:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/import-excel-spreadsheet-to-a-database-table/m-p/126416#M47687</guid>
      <dc:creator>jerrygen78</dc:creator>
      <dc:date>2025-07-25T06:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Import excel spreadsheet to a database table</title>
      <link>https://community.databricks.com/t5/data-engineering/import-excel-spreadsheet-to-a-database-table/m-p/126419#M47688</link>
      <description>&lt;P&gt;An alternative is also to store the flat file into a Volume in Unity Catalog. You can then access it in a similar way:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import pandas as pd

volume_path= "/Volumes/&amp;lt;catalog&amp;gt;/&amp;lt;schema&amp;gt;/&amp;lt;volume_folder&amp;gt;/your_file.xlsx"
pd.read_excel(volume_path, sheet_name="your_sheet")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jul 2025 06:41:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/import-excel-spreadsheet-to-a-database-table/m-p/126419#M47688</guid>
      <dc:creator>FedeRaimondi</dc:creator>
      <dc:date>2025-07-25T06:41:59Z</dc:date>
    </item>
  </channel>
</rss>

