<?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: How to extract JSON object from a pyspark data frame. I was able to extract data from another column which in array format using &amp;quot;Explode&amp;quot; function, but Explode is not working for Object type. Its returning with type mismatch error. in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-extract-json-object-from-a-pyspark-data-frame-i-was-able/m-p/17306#M11333</link>
    <description>&lt;P&gt;Did you try extracting that column data using from_json function ?&lt;/P&gt;</description>
    <pubDate>Tue, 13 Dec 2022 07:28:56 GMT</pubDate>
    <dc:creator>UmaMahesh1</dc:creator>
    <dc:date>2022-12-13T07:28:56Z</dc:date>
    <item>
      <title>How to extract JSON object from a pyspark data frame. I was able to extract data from another column which in array format using "Explode" function, but Explode is not working for Object type. Its returning with type mismatch error.</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-extract-json-object-from-a-pyspark-data-frame-i-was-able/m-p/17305#M11332</link>
      <description>&lt;P&gt;I have tried below code to extract data which in Array:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;df2 = df_deidentifieddocuments_tst.select(F.explode('annotationId').alias('annotationId')).select('annotationId.$oid')&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It was working fine.. but,its not working for JSON object type. Below is column:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="CreateaAT"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1009iDB0CD5F2529D1F8B/image-size/large?v=v2&amp;amp;px=999" role="button" title="CreateaAT" alt="CreateaAT" /&gt;&lt;/span&gt;Any Ideas or suggestion would be great help. Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 15:01:36 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-extract-json-object-from-a-pyspark-data-frame-i-was-able/m-p/17305#M11332</guid>
      <dc:creator>antonyj453</dc:creator>
      <dc:date>2022-12-12T15:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract JSON object from a pyspark data frame. I was able to extract data from another column which in array format using "Explode" function, but Explode is not working for Object type. Its returning with type mismatch error.</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-extract-json-object-from-a-pyspark-data-frame-i-was-able/m-p/17306#M11333</link>
      <description>&lt;P&gt;Did you try extracting that column data using from_json function ?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 07:28:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-extract-json-object-from-a-pyspark-data-frame-i-was-able/m-p/17306#M11333</guid>
      <dc:creator>UmaMahesh1</dc:creator>
      <dc:date>2022-12-13T07:28:56Z</dc:date>
    </item>
  </channel>
</rss>

