0

I have a dataframe below and want to write that contents to a .json file.

Sample input dataframe and expected output json

And while creating output files , I do not want success part log files, so I tried to collect () the values from dataframe and used json_dumps() to create the file. But i am losing the column names and formats as opposed to the expected format in picture

Please help!

werner
  • 13,518
  • 6
  • 30
  • 45

0 Answers0