<?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: DE 2.2 - Providing Options for External Sources - Classroom setup error in Machine Learning</title>
    <link>https://community.databricks.com/t5/machine-learning/de-2-2-providing-options-for-external-sources-classroom-setup/m-p/75886#M3394</link>
    <description>&lt;P&gt;Inspired by&amp;nbsp;&lt;BR /&gt;&lt;A href="https://stackoverflow.com/questions/58984925/pandas-missing-read-parquet-function-in-azure-databricks-notebook" target="_blank"&gt;https://stackoverflow.com/questions/58984925/pandas-missing-read-parquet-function-in-azure-databricks-notebook&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I changed&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;PRE&gt;&lt;SPAN&gt;df = pd.read_parquet(path = datasource_path.replace("dbfs:/", '/dbfs/')) # original, error!&lt;/SPAN&gt;&lt;/PRE&gt;&lt;DIV&gt;&lt;SPAN&gt;into&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;df = spark.read.&lt;/SPAN&gt;&lt;SPAN&gt;format&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"parquet"&lt;/SPAN&gt;&lt;SPAN&gt;).load(datasource_path)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;DIV&gt;and&amp;nbsp;&lt;/DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;df.to_sql(&lt;/SPAN&gt;&lt;SPAN&gt;'users'&lt;/SPAN&gt;&lt;SPAN&gt;, conn, if_exists=&lt;/SPAN&gt;&lt;SPAN&gt;'replace'&lt;/SPAN&gt;&lt;SPAN&gt;, index = &lt;/SPAN&gt;&lt;SPAN&gt;False&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;DIV&gt;into&lt;BR /&gt;&lt;PRE&gt;&lt;SPAN&gt;df.toPandas().to_sql(&lt;/SPAN&gt;&lt;SPAN&gt;'users'&lt;/SPAN&gt;&lt;SPAN&gt;, conn, if_exists=&lt;/SPAN&gt;&lt;SPAN&gt;'replace'&lt;/SPAN&gt;&lt;SPAN&gt;, index = &lt;/SPAN&gt;&lt;SPAN&gt;False&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;DIV&gt;&lt;BR /&gt;Then it works!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 26 Jun 2024 19:47:16 GMT</pubDate>
    <dc:creator>Eagle78</dc:creator>
    <dc:date>2024-06-26T19:47:16Z</dc:date>
    <item>
      <title>DE 2.2 - Providing Options for External Sources - Classroom setup error</title>
      <link>https://community.databricks.com/t5/machine-learning/de-2-2-providing-options-for-external-sources-classroom-setup/m-p/2861#M24</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am unable to execute "Classroom-Setup-02.2" setup in Data Engineering Course. There is the following error: &lt;B&gt;FileNotFoundError: [errno 2] no such file or directory: '/dbfs/mnt/dbacademy-datasets/data-engineer-learning-path/v01/ecommerce/raw/users-historical'&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the community edition of Databricks, with ressource's Runtime of 11.3, scala 2.12.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;%run ../Includes/Classroom-Setup-02.2&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="FileNotFoundError"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/68i29A9B0C82368E45A/image-size/large?v=v2&amp;amp;px=999" role="button" title="FileNotFoundError" alt="FileNotFoundError" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May I know if someone has a solution for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2023 08:41:01 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/de-2-2-providing-options-for-external-sources-classroom-setup/m-p/2861#M24</guid>
      <dc:creator>Psybelo</dc:creator>
      <dc:date>2023-06-19T08:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: DE 2.2 - Providing Options for External Sources - Classroom setup error</title>
      <link>https://community.databricks.com/t5/machine-learning/de-2-2-providing-options-for-external-sources-classroom-setup/m-p/2862#M25</link>
      <description>&lt;P&gt;Hi @Mari B​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Great to meet you, and thanks for your question! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's see if your peers in the community have an answer to your question. Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 04:35:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/de-2-2-providing-options-for-external-sources-classroom-setup/m-p/2862#M25</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-20T04:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: DE 2.2 - Providing Options for External Sources - Classroom setup error</title>
      <link>https://community.databricks.com/t5/machine-learning/de-2-2-providing-options-for-external-sources-classroom-setup/m-p/2863#M26</link>
      <description>&lt;P&gt;Hi Vidula,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure they can help since it's a Classroom setup problem (Databricks config)... But thanks btw.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 08:24:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/de-2-2-providing-options-for-external-sources-classroom-setup/m-p/2863#M26</guid>
      <dc:creator>Psybelo</dc:creator>
      <dc:date>2023-06-20T08:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: DE 2.2 - Providing Options for External Sources - Classroom setup error</title>
      <link>https://community.databricks.com/t5/machine-learning/de-2-2-providing-options-for-external-sources-classroom-setup/m-p/35906#M1865</link>
      <description>&lt;P&gt;I had the same problem. There is another post with the same issue. And I got answer there. See below.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.databricks.com/t5/data-engineering/problems-with-pandas-read-parquet-and-path/td-p/19655/page/2" target="_blank"&gt;Problems with pandas.read_parquet() and path - Databricks - 19655&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 21:39:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/de-2-2-providing-options-for-external-sources-classroom-setup/m-p/35906#M1865</guid>
      <dc:creator>Zhihong</dc:creator>
      <dc:date>2023-06-28T21:39:34Z</dc:date>
    </item>
  </channel>
</rss>

