<?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: How to read a file in pandas in a databricks environment? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-read-a-file-in-pandas-in-a-databricks-environment/m-p/33087#M24174</link>
    <description>&lt;P&gt;dbutils.fs.ls("/FileStore/tables/badrecord-1.csv")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the above file is there in that particular location but still getting the same error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Oct 2022 13:52:22 GMT</pubDate>
    <dc:creator>tinendra</dc:creator>
    <dc:date>2022-10-28T13:52:22Z</dc:date>
    <item>
      <title>How to read a file in pandas in a databricks environment?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-read-a-file-in-pandas-in-a-databricks-environment/m-p/33084#M24171</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;When I was trying to read the CSV files using pandas I am getting an error which I have mentioned below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;df=pd.read_csv("/dbfs/FileStore/tables/badrecord-1.csv")&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Error:&lt;/B&gt; FileNotFoundError: [Errno 2] No such file or directory: '/dbfs/FileStore/tables/badrecord-1.csv'&lt;/P&gt;&lt;P&gt;&lt;B&gt;df=pd.read_csv("/FileStore/tables/badrecord-1.csv")&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Error:&lt;/B&gt; FileNotFoundError: [Errno 2] No such file or directory: '/FileStore/tables/badrecord-1.csv'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone, please tell me how to resolve the above error. thanks&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2021 04:28:36 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-read-a-file-in-pandas-in-a-databricks-environment/m-p/33084#M24171</guid>
      <dc:creator>tinendra</dc:creator>
      <dc:date>2021-12-16T04:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to read a file in pandas in a databricks environment?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-read-a-file-in-pandas-in-a-databricks-environment/m-p/33086#M24173</link>
      <description>&lt;P&gt;So pandas runs on the driver and will read from the driver's filesystem.  DBFS is the distributed file system.  You can use %sh fs ls to explore the files on the driver.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2021 16:55:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-read-a-file-in-pandas-in-a-databricks-environment/m-p/33086#M24173</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-17T16:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to read a file in pandas in a databricks environment?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-read-a-file-in-pandas-in-a-databricks-environment/m-p/33087#M24174</link>
      <description>&lt;P&gt;dbutils.fs.ls("/FileStore/tables/badrecord-1.csv")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the above file is there in that particular location but still getting the same error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 13:52:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-read-a-file-in-pandas-in-a-databricks-environment/m-p/33087#M24174</guid>
      <dc:creator>tinendra</dc:creator>
      <dc:date>2022-10-28T13:52:22Z</dc:date>
    </item>
  </channel>
</rss>

