Import text file into csv file

Tags: , ,

I am new in Python and looking to change text data in csv data, where column contains id, sequence, createdAt, and createdBy?

Text File





My results looks like



Input Data Set appears to be JSON structure
I’d recommend csvkit

Specifically , module in2csv – very powerful

Alternatively – use pandas read_json – this will enable you load into a DataFrame

Source: stackoverflow