<?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: issue when reading csv in pandas in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/issue-when-reading-csv-in-pandas/m-p/64997#M6930</link>
    <description>&lt;P&gt;Assuming dbutils.fs.ls works without the "dbfs:/" prefix, try using it directly, i.e. &lt;SPAN&gt;df1 = pd.read_csv("/FileStore/shared_uploads/shiv/Dea.csv")&amp;nbsp;&lt;/SPAN&gt;. Alternatively, adjust the path as needed if using a local file path df1 = pd.read_csv("dbfs:/FileStore/shared_uploads/shiv/Dea.csv").&lt;SPAN&gt;&amp;nbsp;Hope that helps.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 29 Mar 2024 10:25:50 GMT</pubDate>
    <dc:creator>YuliyanBogdanov</dc:creator>
    <dc:date>2024-03-29T10:25:50Z</dc:date>
    <item>
      <title>issue when reading csv in pandas</title>
      <link>https://community.databricks.com/t5/get-started-discussions/issue-when-reading-csv-in-pandas/m-p/64907#M6927</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;I've encountered an issue while attempting to read a CSV data file into a pandas DataFrame by uploading it into DBFS in the community version of Databricks. Below is the error I encountered along with the code snippet I used:&lt;/P&gt;&lt;P&gt;import pandas as pd&lt;/P&gt;&lt;P&gt;df1 = pd.read_csv("/dbfs/FileStore/shared_uploads/shiv/Dea.csv")&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Error Encountered:&lt;/SPAN&gt;&lt;BR /&gt;FileNotFoundError: [Errno 2] No such file or directory: '/dbfs/FileStore/shared_uploads/shared_uploads/shiv/Dea.csv'&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, when checking for the file using the &lt;/SPAN&gt;dbutils.fs.ls&lt;SPAN&gt; command, I can see the file present:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;dbutils.fs.ls("/FileStore/shared_uploads/shiv/Dea.csv")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Output:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[FileInfo(path='dbfs:/FileStore/shared_uploads/shiv/Dea.csv', name='Dea.csv', size=18679559, modificationTime=1711631849000)]&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 13:34:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/issue-when-reading-csv-in-pandas/m-p/64907#M6927</guid>
      <dc:creator>sbs</dc:creator>
      <dc:date>2024-03-28T13:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: issue when reading csv in pandas</title>
      <link>https://community.databricks.com/t5/get-started-discussions/issue-when-reading-csv-in-pandas/m-p/64948#M6928</link>
      <description>&lt;P&gt;Are you able to read file from that location using spark code?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 17:59:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/issue-when-reading-csv-in-pandas/m-p/64948#M6928</guid>
      <dc:creator>Lakshay</dc:creator>
      <dc:date>2024-03-28T17:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: issue when reading csv in pandas</title>
      <link>https://community.databricks.com/t5/get-started-discussions/issue-when-reading-csv-in-pandas/m-p/64975#M6929</link>
      <description>&lt;P&gt;yes&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 22:27:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/issue-when-reading-csv-in-pandas/m-p/64975#M6929</guid>
      <dc:creator>sbs</dc:creator>
      <dc:date>2024-03-28T22:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: issue when reading csv in pandas</title>
      <link>https://community.databricks.com/t5/get-started-discussions/issue-when-reading-csv-in-pandas/m-p/64997#M6930</link>
      <description>&lt;P&gt;Assuming dbutils.fs.ls works without the "dbfs:/" prefix, try using it directly, i.e. &lt;SPAN&gt;df1 = pd.read_csv("/FileStore/shared_uploads/shiv/Dea.csv")&amp;nbsp;&lt;/SPAN&gt;. Alternatively, adjust the path as needed if using a local file path df1 = pd.read_csv("dbfs:/FileStore/shared_uploads/shiv/Dea.csv").&lt;SPAN&gt;&amp;nbsp;Hope that helps.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2024 10:25:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/issue-when-reading-csv-in-pandas/m-p/64997#M6930</guid>
      <dc:creator>YuliyanBogdanov</dc:creator>
      <dc:date>2024-03-29T10:25:50Z</dc:date>
    </item>
  </channel>
</rss>

