Json to CSV

User 2570 | 6/19/2016, 7:49:12 AM

How to convert a dataset in JSON format to CSV format in graphlab Create

Comments

User 2570 | 6/19/2016, 8:17:32 AM

I get this error

def loadjsonfrom_file('metacsj.json'): """ Load JSON from a file.

@input  filename  Name of the file to be read.
@returns Output SFrame

"""

error:

File "<ipython-input-6-ef37a482c75c>", line 1 def loadjsonfrom_file('metacsj.json'): ^ SyntaxError: invalid syntax


User 1592 | 6/20/2016, 4:41:21 AM

Hi You should use this function instead: https://dato.com/products/create/docs/generated/graphlab.SFrame.read_json.html


User 2570 | 6/20/2016, 10:17:05 AM

Thank you @DannyBickson working,