I'm writing an export udf and I've started out with this:
fileContents = inObj["fileContents"]path = inObj["filePath"]
What is the format of fileContents? I want to parse it into a python dictionary and iterate over it
I figured it out.
Seems like we are using tab delimited csv. Here's an example of how you can read it in using python's csv reader with the excel-tab dialect
import csvreader = csv.DictReader(io.StringIO(fileContents), dialect = csv.excel_tab)
for row in reader: