<?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 How to Insert from an excel row/cell level data into a databricks table in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-insert-from-an-excel-row-cell-level-data-into-a/m-p/101819#M40847</link>
    <description />
    <pubDate>Wed, 11 Dec 2024 19:22:09 GMT</pubDate>
    <dc:creator>SureshRajG</dc:creator>
    <dc:date>2024-12-11T19:22:09Z</dc:date>
    <item>
      <title>How to Insert from an excel row/cell level data into a databricks table</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-insert-from-an-excel-row-cell-level-data-into-a/m-p/101819#M40847</link>
      <description />
      <pubDate>Wed, 11 Dec 2024 19:22:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-insert-from-an-excel-row-cell-level-data-into-a/m-p/101819#M40847</guid>
      <dc:creator>SureshRajG</dc:creator>
      <dc:date>2024-12-11T19:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to Insert from an excel row/cell level data into a databricks table</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-insert-from-an-excel-row-cell-level-data-into-a/m-p/101823#M40850</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;You can achieve that with pandas. See the following example code:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;%pip install openpyxl&lt;/LI-CODE&gt;&lt;LI-CODE lang="python"&gt;import pandas as pd

file_location_xls = "path/to/excel/1.xlsx"

# read the sheet with Name Financials1" into a pandas dataframe
pdf = pd.read_excel(file_location_xls, sheet_name="Financials1")

# Transform the Pandas Dataframe to a Pyspark Dataframe
df = spark.createDataFrame(pdf)

# Save Dataframe as Unity Catalog table
df.write.saveAsTable("default.bronze.excel_data")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2024 19:52:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-insert-from-an-excel-row-cell-level-data-into-a/m-p/101823#M40850</guid>
      <dc:creator>Stefan-Koch</dc:creator>
      <dc:date>2024-12-11T19:52:22Z</dc:date>
    </item>
  </channel>
</rss>

