<?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: Error as no such file when reading CSV file using pandas in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/error-as-no-such-file-when-reading-csv-file-using-pandas/m-p/19800#M13329</link>
    <description>&lt;P&gt;Thanks to @Werner Stinckens​&amp;nbsp;for the answer.&lt;/P&gt;&lt;P&gt;I understood that I have to use spark to read data from clusters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 03 Jun 2022 16:33:44 GMT</pubDate>
    <dc:creator>klllmmm</dc:creator>
    <dc:date>2022-06-03T16:33:44Z</dc:date>
    <item>
      <title>Error as no such file when reading CSV file using pandas</title>
      <link>https://community.databricks.com/t5/data-engineering/error-as-no-such-file-when-reading-csv-file-using-pandas/m-p/19797#M13326</link>
      <description>&lt;P&gt;I'm trying to read a CSV file saved in data using pandas read_csv function. But it gives No such file error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;%fs
ls /FileStore/tables/
&amp;nbsp;
df= pd.read_csv('/dbfs/FileStore/tables/CREDIT_1.CSV')
&amp;nbsp;
&amp;nbsp;
df= pd.read_csv('/dbfs:/FileStore/tables/CREDIT_1.CSV')
&amp;nbsp;
&amp;nbsp;
df= pd.read_csv('/FileStore/tables/CREDIT_1.CSV')&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Can someone pls help with this?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1831iADD8724C71F93528/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 16:22:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-as-no-such-file-when-reading-csv-file-using-pandas/m-p/19797#M13326</guid>
      <dc:creator>klllmmm</dc:creator>
      <dc:date>2022-05-24T16:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Error as no such file when reading CSV file using pandas</title>
      <link>https://community.databricks.com/t5/data-engineering/error-as-no-such-file-when-reading-csv-file-using-pandas/m-p/19798#M13327</link>
      <description>&lt;P&gt;I see you use pandas to read from dbfs.&lt;/P&gt;&lt;P&gt;But pandas will only read from local files,&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.databricks.com/s/question/0D53f00001HKHuwCAH/read-file-from-dbfs-with-pdreadcsv-using-databricksconnect" alt="https://community.databricks.com/s/question/0D53f00001HKHuwCAH/read-file-from-dbfs-with-pdreadcsv-using-databricksconnect" target="_blank"&gt;see this topic also&lt;/A&gt;. It is about databricks-connect but the same principles apply.&lt;/P&gt;&lt;P&gt;So what you should do is first read the file using spark.read.csv and then converting the spark df to a pandas df.&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 07:05:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-as-no-such-file-when-reading-csv-file-using-pandas/m-p/19798#M13327</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2022-05-25T07:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: Error as no such file when reading CSV file using pandas</title>
      <link>https://community.databricks.com/t5/data-engineering/error-as-no-such-file-when-reading-csv-file-using-pandas/m-p/19799#M13328</link>
      <description>&lt;P&gt;Hi @Kelum Perera​&amp;nbsp;following - up did you get a chance to check @Werner Stinckens​&amp;nbsp;previous comments or do you need any further help on this?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 07:01:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-as-no-such-file-when-reading-csv-file-using-pandas/m-p/19799#M13328</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-01T07:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Error as no such file when reading CSV file using pandas</title>
      <link>https://community.databricks.com/t5/data-engineering/error-as-no-such-file-when-reading-csv-file-using-pandas/m-p/19800#M13329</link>
      <description>&lt;P&gt;Thanks to @Werner Stinckens​&amp;nbsp;for the answer.&lt;/P&gt;&lt;P&gt;I understood that I have to use spark to read data from clusters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2022 16:33:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-as-no-such-file-when-reading-csv-file-using-pandas/m-p/19800#M13329</guid>
      <dc:creator>klllmmm</dc:creator>
      <dc:date>2022-06-03T16:33:44Z</dc:date>
    </item>
  </channel>
</rss>

