<?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: i am trying to read csv file using databricks, i am getting error like ......FileNotFoundError: [Errno 2] No such file or directory: '/dbfs/FileStore/tables/world_bank.csv' in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/i-am-trying-to-read-csv-file-using-databricks-i-am-getting-error/m-p/12500#M7300</link>
    <description>&lt;P&gt;This means the path to the file you typed is not valid, the file is not there.&lt;/P&gt;&lt;P&gt;Can you check in the Data/DBFS page if the file is there (or via dbutils.fs.ls)?&lt;/P&gt;</description>
    <pubDate>Tue, 26 Oct 2021 08:55:31 GMT</pubDate>
    <dc:creator>-werners-</dc:creator>
    <dc:date>2021-10-26T08:55:31Z</dc:date>
    <item>
      <title>i am trying to read csv file using databricks, i am getting error like ......FileNotFoundError: [Errno 2] No such file or directory: '/dbfs/FileStore/tables/world_bank.csv'</title>
      <link>https://community.databricks.com/t5/data-engineering/i-am-trying-to-read-csv-file-using-databricks-i-am-getting-error/m-p/12499#M7299</link>
      <description>&lt;P&gt;i am trying to read csv file using databricks, i am getting error like ......FileNotFoundError: [Errno 2] No such file or directory: '/dbfs/FileStore/tables/world_bank.csv'&lt;/P&gt;&lt;P&gt;&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/2366iA26B91920C28E83F/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, 26 Oct 2021 08:40:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/i-am-trying-to-read-csv-file-using-databricks-i-am-getting-error/m-p/12499#M7299</guid>
      <dc:creator>Venky</dc:creator>
      <dc:date>2021-10-26T08:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: i am trying to read csv file using databricks, i am getting error like ......FileNotFoundError: [Errno 2] No such file or directory: '/dbfs/FileStore/tables/world_bank.csv'</title>
      <link>https://community.databricks.com/t5/data-engineering/i-am-trying-to-read-csv-file-using-databricks-i-am-getting-error/m-p/12500#M7300</link>
      <description>&lt;P&gt;This means the path to the file you typed is not valid, the file is not there.&lt;/P&gt;&lt;P&gt;Can you check in the Data/DBFS page if the file is there (or via dbutils.fs.ls)?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 08:55:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/i-am-trying-to-read-csv-file-using-databricks-i-am-getting-error/m-p/12500#M7300</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2021-10-26T08:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: i am trying to read csv file using databricks, i am getting error like ......FileNotFoundError: [Errno 2] No such file or directory: '/dbfs/FileStore/tables/world_bank.csv'</title>
      <link>https://community.databricks.com/t5/data-engineering/i-am-trying-to-read-csv-file-using-databricks-i-am-getting-error/m-p/12501#M7301</link>
      <description>&lt;P&gt;No, file path is correct&lt;/P&gt;&lt;P&gt;&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/2377i18561419E01270D8/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, 26 Oct 2021 09:20:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/i-am-trying-to-read-csv-file-using-databricks-i-am-getting-error/m-p/12501#M7301</guid>
      <dc:creator>Venky</dc:creator>
      <dc:date>2021-10-26T09:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: i am trying to read csv file using databricks, i am getting error like ......FileNotFoundError: [Errno 2] No such file or directory: '/dbfs/FileStore/tables/world_bank.csv'</title>
      <link>https://community.databricks.com/t5/data-engineering/i-am-trying-to-read-csv-file-using-databricks-i-am-getting-error/m-p/12502#M7302</link>
      <description>&lt;P&gt;Please help me on this error&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 09:21:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/i-am-trying-to-read-csv-file-using-databricks-i-am-getting-error/m-p/12502#M7302</guid>
      <dc:creator>Venky</dc:creator>
      <dc:date>2021-10-26T09:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: i am trying to read csv file using databricks, i am getting error like ......FileNotFoundError: [Errno 2] No such file or directory: '/dbfs/FileStore/tables/world_bank.csv'</title>
      <link>https://community.databricks.com/t5/data-engineering/i-am-trying-to-read-csv-file-using-databricks-i-am-getting-error/m-p/12503#M7303</link>
      <description>&lt;P&gt;can you try without the dbfs part?&lt;/P&gt;&lt;P&gt;so /Filestore/tables/world_bank.csv&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 09:36:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/i-am-trying-to-read-csv-file-using-databricks-i-am-getting-error/m-p/12503#M7303</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2021-10-26T09:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: i am trying to read csv file using databricks, i am getting error like ......FileNotFoundError: [Errno 2] No such file or directory: '/dbfs/FileStore/tables/world_bank.csv'</title>
      <link>https://community.databricks.com/t5/data-engineering/i-am-trying-to-read-csv-file-using-databricks-i-am-getting-error/m-p/12504#M7304</link>
      <description>&lt;P&gt;it's not working&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 10:46:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/i-am-trying-to-read-csv-file-using-databricks-i-am-getting-error/m-p/12504#M7304</guid>
      <dc:creator>Venky</dc:creator>
      <dc:date>2021-10-26T10:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: i am trying to read csv file using databricks, i am getting error like ......FileNotFoundError: [Errno 2] No such file or directory: '/dbfs/FileStore/tables/world_bank.csv'</title>
      <link>https://community.databricks.com/t5/data-engineering/i-am-trying-to-read-csv-file-using-databricks-i-am-getting-error/m-p/12505#M7305</link>
      <description>&lt;P&gt;I see that you are using databricks-course-cluster which have probably some limited functionality. Not sure where dbfs is mounted there. When you are using dbutils it display path for dbfs mount (dbfs file system).&lt;/P&gt;&lt;P&gt;Please use spark code instead of pandas so it will be executed properly:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;df = spark.read.csv('dbfs:/FileStore/tables/world_bank.csv')
display(df)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 10:57:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/i-am-trying-to-read-csv-file-using-databricks-i-am-getting-error/m-p/12505#M7305</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2021-10-26T10:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: i am trying to read csv file using databricks, i am getting error like ......FileNotFoundError: [Errno 2] No such file or directory: '/dbfs/FileStore/tables/world_bank.csv'</title>
      <link>https://community.databricks.com/t5/data-engineering/i-am-trying-to-read-csv-file-using-databricks-i-am-getting-error/m-p/12508#M7308</link>
      <description>&lt;P&gt;ops I didn't see the other answers, anyway here you have how to use %fs magic to do the same that dbutils.fs.ls() utils. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just before to create the spark data frame, check if the file exists in the mentioned path. &lt;/P&gt;&lt;P&gt;You can use the %fs magic like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="fs_magic"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/2376i0F1EE171117AC643/image-size/large?v=v2&amp;amp;px=999" role="button" title="fs_magic" alt="fs_magic" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 14:17:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/i-am-trying-to-read-csv-file-using-databricks-i-am-getting-error/m-p/12508#M7308</guid>
      <dc:creator>Alexis</dc:creator>
      <dc:date>2021-10-27T14:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: i am trying to read csv file using databricks, i am getting error like ......FileNotFoundError: [Errno 2] No such file or directory: '/dbfs/FileStore/tables/world_bank.csv'</title>
      <link>https://community.databricks.com/t5/data-engineering/i-am-trying-to-read-csv-file-using-databricks-i-am-getting-error/m-p/12510#M7310</link>
      <description>&lt;P&gt;Pls help,&lt;/P&gt;&lt;P&gt;I have the same problem&lt;/P&gt;&lt;P&gt;&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/2365i43588A8C472F0ADE/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:13:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/i-am-trying-to-read-csv-file-using-databricks-i-am-getting-error/m-p/12510#M7310</guid>
      <dc:creator>klllmmm</dc:creator>
      <dc:date>2022-05-24T16:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: i am trying to read csv file using databricks, i am getting error like ......FileNotFoundError: [Errno 2] No such file or directory: '/dbfs/FileStore/tables/world_bank.csv'</title>
      <link>https://community.databricks.com/t5/data-engineering/i-am-trying-to-read-csv-file-using-databricks-i-am-getting-error/m-p/12511#M7311</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 06:33:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/i-am-trying-to-read-csv-file-using-databricks-i-am-getting-error/m-p/12511#M7311</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2022-05-25T06:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: i am trying to read csv file using databricks, i am getting error like ......FileNotFoundError: [Errno 2] No such file or directory: '/dbfs/FileStore/tables/world_bank.csv'</title>
      <link>https://community.databricks.com/t5/data-engineering/i-am-trying-to-read-csv-file-using-databricks-i-am-getting-error/m-p/12512#M7312</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can try: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my_df = spark.read.format("csv")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.option("inferSchema","true")&amp;nbsp;&amp;nbsp;# to get the types from your data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.option("sep",",")&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;          # if your file is using "," as separator&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.option("header","true")&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;    # if your file have the header in the first row&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.load("/FileStore/tables/CREDIT_1.CSV")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;display(my_df)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from above you can see that my_df is a spark dataframe and from there you can start with you code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 06:52:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/i-am-trying-to-read-csv-file-using-databricks-i-am-getting-error/m-p/12512#M7312</guid>
      <dc:creator>Alexis</dc:creator>
      <dc:date>2022-05-25T06:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: i am trying to read csv file using databricks, i am getting error like ......FileNotFoundError: [Errno 2] No such file or directory: '/dbfs/FileStore/tables/world_bank.csv'</title>
      <link>https://community.databricks.com/t5/data-engineering/i-am-trying-to-read-csv-file-using-databricks-i-am-getting-error/m-p/12513#M7313</link>
      <description>&lt;P&gt;I am wondering how it worked for you. I have tried the same steps and no &lt;/P&gt;&lt;P&gt;luck. using dbutils i am finding file but when i read using pandas its saying no such file or directory exists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://dbutils.fs.ls" alt="https://dbutils.fs.ls" target="_blank"&gt;dbutils.fs.ls&lt;/A&gt;("FileStore/shared_uploads/kumarpalle/Covid19Europedata.csv")&lt;/P&gt;&lt;P&gt;&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/2362i2DF9A3CAC3262FF3/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help here. uploaded the same file that am working on. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, please check if you have applied any settings that we are missing. &lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 16:54:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/i-am-trying-to-read-csv-file-using-databricks-i-am-getting-error/m-p/12513#M7313</guid>
      <dc:creator>KumarPalle</dc:creator>
      <dc:date>2022-08-18T16:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: i am trying to read csv file using databricks, i am getting error like ......FileNotFoundError: [Errno 2] No such file or directory: '/dbfs/FileStore/tables/world_bank.csv'</title>
      <link>https://community.databricks.com/t5/data-engineering/i-am-trying-to-read-csv-file-using-databricks-i-am-getting-error/m-p/12514#M7314</link>
      <description>&lt;P&gt;Hi Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you're almost there, try this:&lt;/P&gt;&lt;P&gt;df1 = pd.read_csv("/dbfs/FileStore/shared_uploads/kumarpalle/Covid19Europedata.csv")&lt;/P&gt;&lt;P&gt;df1.describe()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 17:40:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/i-am-trying-to-read-csv-file-using-databricks-i-am-getting-error/m-p/12514#M7314</guid>
      <dc:creator>Alexis</dc:creator>
      <dc:date>2022-08-18T17:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: i am trying to read csv file using databricks, i am getting error like ......FileNotFoundError: [Errno 2] No such file or directory: '/dbfs/FileStore/tables/world_bank.csv'</title>
      <link>https://community.databricks.com/t5/data-engineering/i-am-trying-to-read-csv-file-using-databricks-i-am-getting-error/m-p/12515#M7315</link>
      <description>&lt;P&gt;Hi @Alexis​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for quick response. It above method didn't worked but reading using spark and appending to Pandas it worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are the steps that i followed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;df1 = spark.read.format("csv").option("header", "true").load("dbfs:/FileStore/shared_uploads/kumarpalle/Covid19Europedata-1.csv").toPandas()&lt;/P&gt;&lt;P&gt;df1.head()&lt;/P&gt;&lt;P&gt;&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/2371i814A1B5925D8E40A/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 10:00:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/i-am-trying-to-read-csv-file-using-databricks-i-am-getting-error/m-p/12515#M7315</guid>
      <dc:creator>KumarPalle</dc:creator>
      <dc:date>2022-08-19T10:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: i am trying to read csv file using databricks, i am getting error like ......FileNotFoundError: [Errno 2] No such file or directory: '/dbfs/FileStore/tables/world_bank.csv'</title>
      <link>https://community.databricks.com/t5/data-engineering/i-am-trying-to-read-csv-file-using-databricks-i-am-getting-error/m-p/12516#M7316</link>
      <description>&lt;P&gt;@Venky D​ Please follow the above steps to read using Spark as pandas doesn't work through dbfs. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 10:01:29 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/i-am-trying-to-read-csv-file-using-databricks-i-am-getting-error/m-p/12516#M7316</guid>
      <dc:creator>KumarPalle</dc:creator>
      <dc:date>2022-08-19T10:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: i am trying to read csv file using databricks, i am getting error like ......FileNotFoundError: [Errno 2] No such file or directory: '/dbfs/FileStore/tables/world_bank.csv'</title>
      <link>https://community.databricks.com/t5/data-engineering/i-am-trying-to-read-csv-file-using-databricks-i-am-getting-error/m-p/12517#M7317</link>
      <description>&lt;P&gt;same issue here... .toPandas() was also my only solution... otherwise error!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2023 16:01:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/i-am-trying-to-read-csv-file-using-databricks-i-am-getting-error/m-p/12517#M7317</guid>
      <dc:creator>Tico23</dc:creator>
      <dc:date>2023-03-03T16:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: i am trying to read csv file using databricks, i am getting error like ......FileNotFoundError:</title>
      <link>https://community.databricks.com/t5/data-engineering/i-am-trying-to-read-csv-file-using-databricks-i-am-getting-error/m-p/42878#M27440</link>
      <description>&lt;P&gt;I did the same as you, but the reading does not work.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SanchesSan_0-1693410377818.png"&gt;&lt;img src="https://community.databricks.com/skins/images/6CDC7A51EA8F15A92A06F4D9BD110F41/responsive_peak/images/image_unmoderated.gif" alt="SanchesSan_0-1693410377818.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can you help me? thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2023 15:46:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/i-am-trying-to-read-csv-file-using-databricks-i-am-getting-error/m-p/42878#M27440</guid>
      <dc:creator>SanchesSan</dc:creator>
      <dc:date>2023-08-30T15:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: i am trying to read csv file using databricks, i am getting error like ......FileNotFoundError:</title>
      <link>https://community.databricks.com/t5/data-engineering/i-am-trying-to-read-csv-file-using-databricks-i-am-getting-error/m-p/82247#M36576</link>
      <description>&lt;P&gt;I had the same issue: geopandas in Databricks notebooks does not open shapefiles from an Azure Storage&amp;nbsp;mount.&lt;BR /&gt;I managed to copy the shapefile to the Databricks workspace using&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;dbutils.fs.cp(shapefile_path, f"file:{local_shapefile_copy_dest_path}") &lt;/LI-CODE&gt;&lt;P&gt;The 'file:' prefix proved to be crucial here.&lt;BR /&gt;&lt;BR /&gt;and then:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;gdf = gpd.read_file(shapefile_path.replace('dbfs:', ''))
gdf.display()&lt;/LI-CODE&gt;&lt;P&gt;I copy the results back to the dbfs mount using&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;dbutils.fs.cp(f"file:{geoparquet_path}", f"{raw_path}{geoparquet_file_basename}.parquet")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/14792"&gt;@-werners-&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&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" target="_blank" rel="noopener"&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;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/14792"&gt;@-werners-&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&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" target="_blank" rel="noopener"&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;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 14:02:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/i-am-trying-to-read-csv-file-using-databricks-i-am-getting-error/m-p/82247#M36576</guid>
      <dc:creator>Eagle78</dc:creator>
      <dc:date>2024-08-07T14:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: i am trying to read csv file using databricks, i am getting error like ......FileNotFoundError:</title>
      <link>https://community.databricks.com/t5/data-engineering/i-am-trying-to-read-csv-file-using-databricks-i-am-getting-error/m-p/82400#M36636</link>
      <description>&lt;P&gt;Ik convert to parquet using&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;gdf.to_parquet(f"/dbfs{raw_path}/{file_name}.parquet") &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 13:30:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/i-am-trying-to-read-csv-file-using-databricks-i-am-getting-error/m-p/82400#M36636</guid>
      <dc:creator>Eagle78</dc:creator>
      <dc:date>2024-08-08T13:30:31Z</dc:date>
    </item>
  </channel>
</rss>

