loklak/loklak_python_api

csvToJson method is not working

YJDave opened this issue · 0 comments

When I try to call csvToJson method, it throws following error.

Traceback (most recent call last):
  File "lokak.py", line 16, in <module>
    print(l.csvToJson(csvData))
  File "/home/venv-loklak-2/local/lib/python2.7/site-packages/loklak.py", line 73, in csvToJson
    return out
NameError: global name 'out' is not defined

My script looks like this,

csvData = '"abc","xyz","dsf","sdfkl",12.1'
print(l.csvToJson(csvData))