
Use 'smart' unless you REALLY need to specify otherwise, as 'smart' will always produce findDuplicates(csvData, fieldNum, flat=False) findDuplicates - Find lines with duplicate values in a specific field number. returnData is first line, methods defined here:ĭataToStr(csvData, separator=',', quoteFields='smart', lineSeparator='\r\n') RFC4180 _init_(self, formatStr, nullValue='', debug=False) _init_ - Create a JsonToCsv convertToCsv(self, data, quoteFields='smart', lineSeparator='\r\n') extractData(self, data) extractData - Return a list of lists. The outer list represents lines, the inner list data points.Į.x. JsonToCsv - Public class containing methods for dealing with convertingĭesigned to produce RFC 4180 csv output from json data using a meta language. _cause_ exception cause _context_ exception context _dict_ _suppress_context_ _traceback_ args _traceback_ to tb and return self.ĭata descriptors inherited from builtins.BaseException: _setattr_(self, name, value, /) Implement setattr(self, name, value). _reduce_(.) helper for pickle _repr_(self, /) Return repr(self). _getattribute_(self, name, /) Return getattr(self, name).

_delattr_(self, name, /) Implement delattr(self, name). Methods inherited from builtins.BaseException: _new_(*args, **kwargs) from builtins.type Create and return a new object. See help(type(self)) for accurate signature. _init_(self, /, *args, **kwargs) Initialize self. Methods inherited from builtins.Exception: _weakref_ list of weak references to the object (if defined) Method resolution order: FormatStrParseError builtins.Exception builtins.BaseException builtins.object

May also be used to just extract data into lists.īuiltins.Exception( builtins.BaseException)įormatStrParseError builtins.object JsonToCsvĬlass FormatStrParseError( builtins.Exception)įormatStrParseError - Raised if there is an error in parsing the format string. Resulting csv will confirm to RFC 4180 "Common format for MIME Type for Comma-Separated Values (CSV) Files Json_to_csv - Module for converting json data to csv data, and various supplementry methods. Copyright (c) 2017 Timothy Savannah All Rights Reserved
