Re: Dataframe to nested json document

2020-05-30 Thread neeraj bhadani
Hi, Apologies for missing link in the previous mail. You can follow the below link to save your DataFrame as JSON file. https://spark.apache.org/docs/latest/api/python/pyspark.sql.html#pyspark.sql.DataFrameWriter.json Regards, Neeraj

Re: Dataframe to nested json document

2020-05-30 Thread neeraj bhadani
Hi, You can follow this to save your DataFrame as JSON file. Regards, Neeraj On Sat, May 30, 2020 at 12:44 PM zakaria benzidalmal wrote: > Hi > > Just save it as json > > Le sam. 30 mai 2020 à 13:15, Chidananda Unchi a > écrit : > >> Hi All, >> >>> >>> I want to convert dataframe to JSOn Dc

Re: Dataframe to nested json document

2020-05-30 Thread zakaria benzidalmal
Hi Just save it as json Le sam. 30 mai 2020 à 13:15, Chidananda Unchi a écrit : > Hi All, > >> >> I want to convert dataframe to JSOn Dcoumnet using spark scala. >> >> Can some one share me sample codes or any suggestions >> >> Regards, >> Chidananda >> >>

Dataframe to nested json document

2020-05-30 Thread Chidananda Unchi
Hi All, > > I want to convert dataframe to JSOn Dcoumnet using spark scala. > > Can some one share me sample codes or any suggestions > > Regards, > Chidananda > >