<?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: Accessing Excel file from Databricks in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/accessing-excel-file-from-databricks/m-p/50418#M28803</link>
    <description>&lt;P&gt;Thank you Kaniz for the response.&lt;/P&gt;&lt;P&gt;1. Completed&lt;BR /&gt;2. This is completed as part of our initial environment setup OR is this something needs to be defined before the code below?&lt;BR /&gt;3.&amp;nbsp;import pandas as pd&lt;BR /&gt;xls = pd.ExcelFile('wasbs://mnt/dl-sync-team-dev/ADP/AbsentEmployees.xls/') -- Accessing the excel file in Blob container using wasbs&lt;BR /&gt;network_master = pd.read_excel(xls, 'Sheet1')&lt;/P&gt;&lt;P&gt;Error :&amp;nbsp;ValueError: Protocol not known: wasbs&lt;BR /&gt;Can you please take a look and correct me if there is anything wrong with my code or is there anything we need to configure in the environment for wasbs protocol?&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;John&lt;/P&gt;</description>
    <pubDate>Fri, 03 Nov 2023 14:48:14 GMT</pubDate>
    <dc:creator>JohnJustus</dc:creator>
    <dc:date>2023-11-03T14:48:14Z</dc:date>
    <item>
      <title>Accessing Excel file from Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/accessing-excel-file-from-databricks/m-p/50382#M28783</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to access excel file that is stored in Azure Blob storage via Databricks.&lt;/P&gt;&lt;P&gt;In my understanding, it is not possible to access using Pyspark. So accessing through Pandas is the option,&lt;/P&gt;&lt;P&gt;Here is my code.&lt;/P&gt;&lt;P&gt;%pip install openpyxl&lt;BR /&gt;import pandas as pd&lt;BR /&gt;from pandas import ExcelFile&lt;BR /&gt;pdf = pd.ExcelFile('/mnt/dl-sy-team-dev/AD/AbsentEmployees.xls/', engine='openpyxl')&lt;BR /&gt;print(pdf)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN class=""&gt;FileNotFoundError: [Errno 2] No such file or directory: '/mnt/dl-sy-team-dev/ADP/AbsentEmployees.xls/'&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN class=""&gt;The file is definitely&amp;nbsp;there and has proper permissions&amp;nbsp;as I can browse using &lt;SPAN&gt;dbutils.fs.ls command in databricks.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN class=""&gt;Can some one please help me with this error as to how to fix this?&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN class=""&gt;Thanks,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN class=""&gt;John&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2023 18:49:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/accessing-excel-file-from-databricks/m-p/50382#M28783</guid>
      <dc:creator>JohnJustus</dc:creator>
      <dc:date>2023-11-02T18:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Excel file from Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/accessing-excel-file-from-databricks/m-p/50418#M28803</link>
      <description>&lt;P&gt;Thank you Kaniz for the response.&lt;/P&gt;&lt;P&gt;1. Completed&lt;BR /&gt;2. This is completed as part of our initial environment setup OR is this something needs to be defined before the code below?&lt;BR /&gt;3.&amp;nbsp;import pandas as pd&lt;BR /&gt;xls = pd.ExcelFile('wasbs://mnt/dl-sync-team-dev/ADP/AbsentEmployees.xls/') -- Accessing the excel file in Blob container using wasbs&lt;BR /&gt;network_master = pd.read_excel(xls, 'Sheet1')&lt;/P&gt;&lt;P&gt;Error :&amp;nbsp;ValueError: Protocol not known: wasbs&lt;BR /&gt;Can you please take a look and correct me if there is anything wrong with my code or is there anything we need to configure in the environment for wasbs protocol?&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;John&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 14:48:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/accessing-excel-file-from-databricks/m-p/50418#M28803</guid>
      <dc:creator>JohnJustus</dc:creator>
      <dc:date>2023-11-03T14:48:14Z</dc:date>
    </item>
  </channel>
</rss>

