<?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 How to use a Dataframe created in one Notebook from Another, without writing it anywhere ? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-use-a-dataframe-created-in-one-notebook-from-another/m-p/84453#M37197</link>
    <description>&lt;P&gt;I have a large Notebook and want to divide it into multiple Notebooks and use Databricks jobs to run parallelly. However, one of the notebook is using a dataframe from one of the notebooks, so it has to be run downstream of the other ones. Now, since it is using the values from previous dataframe, how can I use the dataframe from the upstream Notebooks without writing it to a file or Unity Catalog. Thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 27 Aug 2024 15:54:37 GMT</pubDate>
    <dc:creator>Amodak91</dc:creator>
    <dc:date>2024-08-27T15:54:37Z</dc:date>
    <item>
      <title>How to use a Dataframe created in one Notebook from Another, without writing it anywhere ?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-use-a-dataframe-created-in-one-notebook-from-another/m-p/84453#M37197</link>
      <description>&lt;P&gt;I have a large Notebook and want to divide it into multiple Notebooks and use Databricks jobs to run parallelly. However, one of the notebook is using a dataframe from one of the notebooks, so it has to be run downstream of the other ones. Now, since it is using the values from previous dataframe, how can I use the dataframe from the upstream Notebooks without writing it to a file or Unity Catalog. Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2024 15:54:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-use-a-dataframe-created-in-one-notebook-from-another/m-p/84453#M37197</guid>
      <dc:creator>Amodak91</dc:creator>
      <dc:date>2024-08-27T15:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a Dataframe created in one Notebook from Another, without writing it anywhere ?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-use-a-dataframe-created-in-one-notebook-from-another/m-p/85772#M37260</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/117690"&gt;@Amodak91&lt;/a&gt;, you could use the %run magic command from within the downstream notebook and call the upstream notebook thus having it run in the same context and have all it's variables accessible including the dataframe without needing to persist it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alternatively you could register a temp view on the dataframe and call the downstream notebook using the&amp;nbsp;&lt;SPAN&gt;dbutils.notebook.run() method.&lt;BR /&gt;&lt;BR /&gt;You could read more about this &lt;A href="https://learn.microsoft.com/en-us/azure/databricks/notebooks/notebook-workflows" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;and decide what suits better.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2024 10:45:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-use-a-dataframe-created-in-one-notebook-from-another/m-p/85772#M37260</guid>
      <dc:creator>menotron</dc:creator>
      <dc:date>2024-08-28T10:45:34Z</dc:date>
    </item>
  </channel>
</rss>

